import { ChevronDown, ChevronUp, Settings } from "lucide-react"; import { Fragment, useState } from "react"; import { FormProvider, type UseFormReturn } from "react-hook-form"; import { useTranslation } from "react-i18next"; import { Button } from "@/components/ui/button"; import { FormField, FormFieldItem, FormFieldLabel, } from "@/components/ui/form.tsx"; import { Input } from "@/components/ui/input.tsx"; import type { MemShellFormSchema } from "@/types/schema.ts"; export function OptionalClassFormField({ form, }: Readonly<{ form: UseFormReturn }>) { const { t } = useTranslation(["memshell", "common"]); const [showAdvanced, setShowAdvanced] = useState(false); return (
{showAdvanced && ( ( {t("mainConfig.shellClassName")} {t("common:optional")} )} /> ( {t("mainConfig.injectorClassName")} {t("common:optional")} )} /> )}
); }