selectControlWithProps.tsx 435 B

123456789101112131415
  1. import type {ReactElement} from 'react';
  2. import type {ControlProps} from 'sentry/components/forms/controls/selectControl';
  3. import SelectControl from 'sentry/components/forms/controls/selectControl';
  4. export type Option = {
  5. label: string | ReactElement;
  6. value: string;
  7. };
  8. function SelectControlWithProps(props: ControlProps & {options: Option[]}) {
  9. return <SelectControl {...props} />;
  10. }
  11. export default SelectControlWithProps;