import type { RcSelectProps } from '@ringcentral/juno'; import { RcMenuItem, RcSelect } from '@ringcentral/juno'; import type { FunctionComponent } from 'react'; import React from 'react'; import { PickListOption } from '../FieldItem.interface'; export type SelectFieldProps = { options: PickListOption[]; labelClassName?: string; } & RcSelectProps; export const SelectField: FunctionComponent = ({ options, labelClassName, ...rest }) => { return ( {options.map((item, i) => ( {item.label} ))} ); };