import { __ } from '@wordpress/i18n';
import { SelectControl } from '@wordpress/components';

const ListTag = ({ value = 'ul', onChange }) => {
	return (
		<SelectControl
			label={__('List type', 'axcelersblocks')}
			value={value}
			options={[
				{ label: __('Unordered List (ul)', 'axcelersblocks'), value: 'ul' },
				{ label: __('Ordered List (ol)', 'axcelersblocks'), value: 'ol' },
			]}
			onChange={onChange}
		/>
	);
};

export default ListTag;