File "edit.js"

Full Path: /home/romayxjt/public_html/wp-content/plugins/orderable/inc/modules/checkout/blocks/order-date/src/js/edit.js
File size: 612 bytes
MIME-type: text/x-java
Charset: utf-8

/**
 * External dependencies
 */
import { __ } from '@wordpress/i18n';
import { useBlockProps } from '@wordpress/block-editor';
import { SelectControl, Disabled } from '@wordpress/components';

export const Edit = () => {
	const blockProps = useBlockProps();
	return (
		<div { ...blockProps }>
			<Disabled>
				<SelectControl
					label={ __( 'Delivery Date', 'orderable' ) }
					options={ [
						{
							value: 'today',
							label: __( 'Today', 'orderable' ),
						},
						{
							value: 'tomorrow',
							label: __( 'Tomorrow', 'orderable' ),
						},
					] }
				/>
			</Disabled>
		</div>
	);
};