https://dev.kronoz.win/r/marzneshin.git
1import {
2 FormControl,
3 FormField,
4 FormItem,
5 FormLabel,
6 FormMessage,
7 Input
8} from "@marzneshin/common/components";
9import { useFormContext } from "react-hook-form";
10
11export const MtuField = () => {
12 const form = useFormContext()
13 return (
14 <FormField
15 control={form.control}
16 name="mtu"
17 render={({ field }) => (
18 <FormItem className="w-1/3">
19 <FormLabel>MTU</FormLabel>
20 <FormControl>
21 <Input type="number" {...field} />
22 </FormControl>
23 <FormMessage />
24 </FormItem>
25 )}
26 />
27 )
28}