/* eslint-disable newline-before-return */ import { FC, SyntheticEvent } from 'react'; import { Message, Dimmer, Loader, Select, DropdownProps, } from 'semantic-ui-react'; import { CreateFacilityInput } from '../../API'; export type SelectOptionType = { key: string; value: string; text: string; }; export interface FacilitySelectInterface { list: CreateFacilityInput[]; placeholder?: string; disable?: boolean; onChange: (_: SyntheticEvent, data: DropdownProps) => void; } export const FacilitySelect: FC = (props) => { const { list, placeholder, disable, onChange } = props; return (