import { AlertCard, Button, FormLabel, ScrollArea, } from "@marzneshin/common/components"; import { useFieldArray, useFormContext } from "react-hook-form"; import { DynamicField } from "@marzneshin/libs/dynamic-field"; import { useTranslation } from "react-i18next"; import { ListPlus, Trash } from "lucide-react"; // TODO: Default back to previous value // TODO: Push up animation for adding new headers // TODO: Remove animation for removing previous headers export const HttpHeadersDynamicFields = () => { const { t } = useTranslation(); const { control } = useFormContext(); const { fields, append, remove, replace } = useFieldArray({ control, name: "http_headers", }); return (