import { TextControl } from '@wordpress/components'; import SettingsBlock from '../SettingsBlock'; import { Title, Action, Description, SupplementaryLabel } from '../Elements'; const InputSettingsBlock = ( { title, description, supplementaryLabel, showDescriptionFirst = false, value, onChange, placeholder = '', } ) => { const TheDescription = { description }; return ( { title } { supplementaryLabel && ( <SupplementaryLabel> { supplementaryLabel } </SupplementaryLabel> ) } { showDescriptionFirst && TheDescription } { ! showDescriptionFirst && TheDescription } ); }; export default InputSettingsBlock;