| 1 |
import BlockLabel from './BlockLabel'; |
| 2 |
import BlockName from './BlockName'; |
| 3 |
import BlockDescription from './BlockDescription'; |
| 4 |
import BlockDefaultValue from './BlockDefaultValue'; |
| 5 |
|
| 6 |
const { |
| 7 |
PanelBody, |
| 8 |
} = wp.components; |
| 9 |
const { |
| 10 |
__, |
| 11 |
} = wp.i18n; |
| 12 |
|
| 13 |
function GeneralFields( { hasMacro = true } ) { |
| 14 |
return <PanelBody title={ __( 'General', 'jet-form-builder' ) } |
| 15 |
key={ 'jet-form-general-fields' }> |
| 16 |
<BlockLabel/> |
| 17 |
<BlockName/> |
| 18 |
<BlockDescription/> |
| 19 |
<BlockDefaultValue hasMacro={ hasMacro } /> |
| 20 |
</PanelBody>; |
| 21 |
} |
| 22 |
|
| 23 |
export default GeneralFields; |