import React from 'react'; import type { Option } from 'react-select'; import type { IRegion } from '../account/AccountService'; import type { IFormInputProps } from '../presentation'; import { SelectInput } from '../presentation'; export interface IRegionSelectInputProps extends IFormInputProps { account: string; readOnly?: boolean; regions: IRegion[]; } export function RegionSelectInput(props: IRegionSelectInputProps) { const { account, readOnly, regions, ...otherProps } = props; if (!account) { return
{props.value}
; } const allRegions: IRegion[] = regions ? regions : []; const options: Array