← marzneshin
/
v0.5.4
/
dashboard/src/features/subscription-settings/form/fields/url-prefix.tsx
https://dev.kronoz.win/r/marzneshin.git
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 UrlPrefixField = () => {
12 const { t } = useTranslation()
13 const form = useFormContext();
14 return (
15 <FormField
16 control={form.control}
17 name="url_prefix"
18 render={({ field }) => (
19 <FormItem>
20 <FormLabel>{t("page.settings.subscription-settings.url-prefix")}</FormLabel>
21 <FormControl>
22 <Input className="h-8" {...field} />
23 </FormControl>
24 </FormItem>
25 )}
26 />
27 )
28}