| 1 |
/** |
| 2 |
* WordPress dependencies |
| 3 |
*/ |
| 4 |
const {Fragment} = wp.element; |
| 5 |
|
| 6 |
/** |
| 7 |
* Internal dependencies |
| 8 |
*/ |
| 9 |
import Inspector from './inspector'; |
| 10 |
|
| 11 |
/** |
| 12 |
* Vendor dependencies |
| 13 |
*/ |
| 14 |
import ServerSideRender from '../../../components/server-side-render-x'; |
| 15 |
|
| 16 |
/** |
| 17 |
* Render Block UI For Editor |
| 18 |
*/ |
| 19 |
|
| 20 |
const ProgressBar = ({attributes, setAttributes}) => { |
| 21 |
return ( |
| 22 |
<Fragment> |
| 23 |
<Inspector {...{attributes, setAttributes}} /> |
| 24 |
<ServerSideRender |
| 25 |
block="give/progress-bar" |
| 26 |
attributes={attributes} |
| 27 |
spinnerLocation={{right: 0, top: -30, unit: 'px'}} |
| 28 |
/> |
| 29 |
</Fragment> |
| 30 |
); |
| 31 |
}; |
| 32 |
|
| 33 |
export default ProgressBar; |
| 34 |
|