import type { RcTextFieldProps } from '@ringcentral/juno'; import type { FunctionComponent } from 'react'; import React from 'react'; import { SelectList, type SelectListProps } from '../../../SelectList'; import { SelectListTextField } from './SelectListTextField/SelectListTextField'; export type FullSelectFieldProps = { TextFieldProps: Pick; onFullSelectFieldClick?: (field: string) => void; } & SelectListProps; export const FullSelectField: FunctionComponent = ({ disabled, TextFieldProps, field, title, onFullSelectFieldClick, ...rest }) => { const { helperText, value } = TextFieldProps; return ( onFullSelectFieldClick?.(field!)} /> ); }; FullSelectField.defaultProps = { TextFieldProps: {}, };