| 1 |
/** |
| 2 |
* WordPress dependencies |
| 3 |
*/ |
| 4 |
import { Fragment } from '@wordpress/element'; |
| 5 |
import ServerSideRender from '@wordpress/server-side-render'; |
| 6 |
|
| 7 |
/** |
| 8 |
* Internal dependencies |
| 9 |
*/ |
| 10 |
import Inspector from './inspector'; |
| 11 |
|
| 12 |
/** |
| 13 |
* Render Block UI For Editor |
| 14 |
*/ |
| 15 |
|
| 16 |
const GiveDonorWall = ( props ) => { |
| 17 |
const { attributes } = props; |
| 18 |
|
| 19 |
return ( |
| 20 |
<Fragment> |
| 21 |
<Inspector { ... { ...props } } /> |
| 22 |
<ServerSideRender block="give/donor-wall" attributes={ attributes } /> |
| 23 |
</Fragment> |
| 24 |
); |
| 25 |
}; |
| 26 |
|
| 27 |
export default GiveDonorWall; |
| 28 |
|
| 29 |
// @todo show no donor template if donor does not exist. |
| 30 |
|
| 31 |
|