import {SelectControl} from '@wordpress/components'; import './styles.scss'; /** * @since 4.0.0 */ export default ({label, options, onChange, value}: GridLayoutProps) => { const index = options.findIndex((option) => value === option.value); return ( <>
{Array(index + 1).fill(
)}
onChange(selected)} options={options} /> ) } interface GridLayoutProps { label: string; value: string; options: { value: string, label: string }[], onChange: (value: string) => void, }