import { type Dispatch, type SetStateAction } from 'react' import { Input, TextField as AriaTextField } from 'react-aria-components' import { cn } from '~/utils/cn' type TextFieldProperties = Parameters[0] & { readonly label: string; readonly placeholder: string; readonly state?: [string, Dispatch>]; } export default function TextField(properties: TextFieldProperties) { return ( { properties.state?.[1](event.target.value) }} /> ) }