import type { FieldName } from "@conform-to/react"; import { useField, useControl } from "@conform-to/react/future"; import { Field, type FieldProps } from "../field/Field"; import { TotpInput } from "./TotpInput"; interface Props extends Omit { name: FieldName; } export function TotpField({ name, id: forcedId, ...rest }: Props) { const field = useField(name); const id = forcedId ?? field.id; const control = useControl({ defaultValue: field.defaultValue, }); return ( <> ); }