jetformbuilder
/
modules
/
framework
/
blocks-style-manager
/
assets
/
src
/
components
/
control-stack.jsx
jetformbuilder
/
modules
/
framework
/
blocks-style-manager
/
assets
/
src
/
components
Last commit date
common
2 months ago
controls
2 months ago
control-component.jsx
2 months ago
control-section.jsx
2 months ago
control-stack.jsx
2 months ago
control-stack.jsx
24 lines
| 1 | import { InspectorControls } from '@wordpress/block-editor'; |
| 2 | import { getBlockControls } from '../helpers/utils'; |
| 3 | import ControlSection from './control-section'; |
| 4 | |
| 5 | const ControlStack = ( props ) => { |
| 6 | |
| 7 | const blockControls = getBlockControls( props.name ); |
| 8 | |
| 9 | return ( |
| 10 | <InspectorControls group="styles"> |
| 11 | { blockControls.map( ( control ) => { |
| 12 | return ( |
| 13 | <ControlSection |
| 14 | key={ control.id } |
| 15 | section={ control } |
| 16 | props={ props } |
| 17 | /> |
| 18 | ); |
| 19 | } ) } |
| 20 | </InspectorControls> |
| 21 | ); |
| 22 | }; |
| 23 | |
| 24 | export default ControlStack; |