import { Button, DatePicker, Dropdown } from '@wordpress/components'; import { __experimentalGetSettings as getSettings, dateI18n, } from '@wordpress/date'; import { Component } from '@wordpress/element'; import { __ } from '@wordpress/i18n'; /** * Component Class */ export default class VPDatePicker extends Component { render() { const { value, onChange } = this.props; const settings = getSettings(); const resolvedFormat = settings.formats.datetime || 'F j, Y'; return ( ( )} renderContent={() => (
{value ? ( ) : ( '' )}
)} /> ); } }