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