"use client"; import { downloadSchema } from "@/lib/validations/validation"; import { zodResolver } from "@hookform/resolvers/zod"; import { useForm } from "react-hook-form"; import { z } from "zod"; import { Button } from "@/components/ui/button"; import { Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, } from "@/components/ui/form"; import { Input } from "@/components/ui/input"; const DownloadPage = () => { const form = useForm>({ resolver: zodResolver(downloadSchema), defaultValues: { username: "", }, }); function onSubmit(values: z.infer) { // Do something with the form values. // ✅ This will be type-safe and validated. console.log(values); } return (

Download Section

( Username )} />
); }; export default DownloadPage;