import { TaxesMultiSelectField } from "@erp/core/components"; import { TextAreaField, TextField } from "@repo/rdx-ui/components"; import { Card, CardContent, CardHeader, CardTitle, FormControl, FormField, FormItem, FormLabel, FormMessage, RadioGroup, RadioGroupItem, } from "@repo/shadcn-ui/components"; import { useFormContext, useWatch } from "react-hook-form"; import { useTranslation } from "../../i18n"; import { CustomerFormData } from "../../schemas"; export const CustomerBasicInfoFields = () => { const { t } = useTranslation(); const { control } = useFormContext(); const isCompany = useWatch({ name: "is_company", defaultValue: "true", }); return ( Identificación
( {t("form_fields.customer_type.label")} {t("form_fields.customer_type.company")} {t("form_fields.customer_type.individual")} )} />
{isCompany === "false" ? (
) : ( <> )}
); };