/** * External dependencies */ import classNames from 'classnames'; import { __ } from '@wordpress/i18n'; import { Fragment } from '@wordpress/element'; import { InspectorControls } from '@wordpress/editor'; import { PanelBody, TextControl } from '@wordpress/components'; /** * Internal dependencies */ import JetpackFieldLabel from './jetpack-field-label'; function JetpackField( { isSelected, type, required, label, setAttributes, defaultValue, placeholder, id, } ) { return (
} placeholder={ placeholder } value={ placeholder } onChange={ value => setAttributes( { placeholder: value } ) } title={ __( 'Set the placeholder text', 'jetpack' ) } />
setAttributes( { defaultValue: value } ) } /> setAttributes( { id: value } ) } />
); } export default JetpackField;