Sindbad~EG File Manager
/**
* WordPress dependencies
*/
const { Fragment } = wp.element;
const ServerSideRender = wp.serverSideRender;
const { withSelect } = wp.data;
/**
* Internal dependencies
*/
import Inspector from './inspector';
/**
* Render Block UI For Editor
*/
const GiveDonationFormGrid = ( props ) => {
const { attributes } = props;
return (
<Fragment>
<Inspector { ... { ...props } } />
<ServerSideRender block="give/donation-form-grid" attributes={ attributes } />
</Fragment>
);
};
export default withSelect( ( select ) => {
return {
forms: select( 'core' ).getEntityRecords( 'postType', 'give_forms' ),
};
} )( GiveDonationFormGrid );
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists