selectControlWithProps.tsx 369 B

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