import { Controller, type UseFormReturn } from "react-hook-form"; import { useTranslation } from "react-i18next"; import { Field, FieldError, FieldLabel } from "@/components/ui/field"; import { Input } from "@/components/ui/input"; import { cn, shouldHidden } from "@/lib/utils"; import type { MemShellFormSchema } from "@/types/schema"; export function UrlPatternFormField({ form, }: Readonly<{ form: UseFormReturn }>) { const { t } = useTranslation("common"); const shellType = form.watch("shellType"); return ( ( {t("urlPattern")} {fieldState.error && } )} /> ); }