Current File : /home/kelaby89/jrncommunityhousing.charity/wp-content/plugins/give/blocks/donor-wall/edit/block.js |
/**
* WordPress dependencies
*/
import { Fragment } from '@wordpress/element';
import ServerSideRender from '@wordpress/server-side-render';
/**
* Internal dependencies
*/
import Inspector from './inspector';
/**
* Render Block UI For Editor
*/
const GiveDonorWall = ( props ) => {
const { attributes } = props;
return (
<Fragment>
<Inspector { ... { ...props } } />
<ServerSideRender block="give/donor-wall" attributes={ attributes } />
</Fragment>
);
};
export default GiveDonorWall;
// @todo show no donor template if donor does not exist.