import React from 'react' import type { FieldSelectProps } from './types' import { Select, Box, FormErrorMessage, FormLabel, SelectKey } from '@/design-system/components' import { getLayoutProps } from '@/design-system/utils/getLayoutProps' import { useMemo } from '@/hooks' export const FieldSelect = ({ isRequired, isInvalid, label, helperText, errorMessage, onOpen, labelStyle, ...props }: FieldSelectProps) => { const { layoutProps } = useMemo(() => getLayoutProps(props), [props]) if (props.children) { return ) }