utils
1 month ago
AZInspectorControls.js
1 month ago
DisplayOptions.js
1 month ago
Extensions.js
1 month ago
ItemSelection.js
1 month ago
PostParent.js
1 month ago
AZInspectorControls.js
14 lines
| 1 | import { createSlotFill, PanelBody } from '@wordpress/components'; |
| 2 | |
| 3 | export const { Fill, Slot } = createSlotFill( 'AlphaListingInspectorControls' ); |
| 4 | |
| 5 | const AZInspectorControls = ( { children, title } ) => ( |
| 6 | <Fill> |
| 7 | <PanelBody title={ title }>{ children }</PanelBody> |
| 8 | </Fill> |
| 9 | ); |
| 10 | |
| 11 | AZInspectorControls.Slot = Slot; |
| 12 | |
| 13 | export default AZInspectorControls; |
| 14 |