import UsStates from './UsStates'; import { SingleStringSelectGroup, StringInputGroup } from '../'; import FieldSection from '../Field/FieldSection'; import { FormBuilderProp } from '../Form/Form'; import { zipCode as zipCodeNormalizer } from '../Normalization/normalizers'; import { required, zipCode as zipCodeValidator, } from '../Validation/validators'; // TODO: find a permanent home for these interfaces // TODO: but also, maybe they are comfortable here? export interface AddressInputProps { fieldBuilder: Pick, 'Field'>; name: string; } interface AddressDto { address1?: string | null; address2?: string | null; zipCode?: string | null; city?: string | null; state?: string | null; } /** * Collection of ``s for inputting an address. Includes: * ```txt * Address 1 * Address 2 * City * State * Zip * ``` */ export default function AddressInput({ fieldBuilder: { Field }, name, }: AddressInputProps) { return ( <> ); }