import { unstable_FormState } from "../FormState"; import { unstable_getIn } from "../utils/getIn"; export function shouldShowError( { touched, errors }: Pick, "touched" | "errors">, name: any ) { return !!(unstable_getIn(touched, name) && unstable_getIn(errors, name)); }