import React from 'react'; import { Select } from '@cloudflare/component-select'; import { Base, BaseProps } from './Base'; import { SelectOption } from './types'; export type SelectProps = Omit< BaseProps, ValueType>, 'onChange' | 'value' | 'options' > & { onChange?: (option: SelectOption) => void; value?: ValueType; options: SelectOption[]; }; export default function FormSelect(props: SelectProps) { return ( , ValueType> // @ts-ignore Component={Select} {...props} /> ); }