gitscope
← marzneshin / v0.6.1 / dashboard/src/features/subscription-settings/form/fields/support-link.tsx
https://dev.kronoz.win/r/marzneshin.git
dashboard/src/features/subscription-settings/form/fields/support-link.tsx · TypeScript
Blame Raw
 1import {
 2    FormField,
 3    FormItem,
 4    FormLabel,
 5    Input,
 6    FormControl,
 7} from "@marzneshin/components";
 8import { useFormContext } from "react-hook-form";
 9import { useTranslation } from "react-i18next";
10
11export const SupportLinkField = () => {
12    const { t } = useTranslation()
13    const form = useFormContext();
14    return (
15        <FormField
16            control={form.control}
17            name="support_link"
18            render={({ field }) => (
19                <FormItem>
20                    <FormLabel>{t("page.settings.subscription-settings.support-link")}</FormLabel>
21                    <FormControl>
22                        <Input className="h-8" {...field} />
23                    </FormControl>
24                </FormItem>
25            )}
26        />
27    )
28}