"use client"; import { zodResolver } from "@hookform/resolvers/zod"; import { useForm } from "react-hook-form"; import { z } from "zod"; import { Form, FormControl, FormField, FormItem, FormMessage, } from "@/components/ui/form"; import Link from "next/link"; import { cn } from "@/lib/utils"; import { IconBrandGithub } from "@tabler/icons-react"; import Password from "./password"; import { Button } from "./ui/button"; import { Logo } from "./Logo"; const formSchema = z.object({ name: z .string({ message: "Please enter your name", }) .min(1, "Please enter your name"), email: z .string({ message: "Please enter email", }) .email("Please enter valid email") .min(1, "Please enter email"), password: z .string({ message: "Please enter password", }) .min(1, "Please enter password"), }); export type LoginUser = z.infer; export function SignupForm() { const form = useForm({ resolver: zodResolver(formSchema), defaultValues: { name: "", email: "", password: "", }, }); async function onSubmit(_values: LoginUser) { try { // Handle signup logic here } catch { // Handle error silently } } return (

Sign up for an account

(
)} />
(
)} />
(
)} />

Already have an account?{" "} Sign in

By clicking on sign up, you agree to our{" "} Terms of Service {" "} and{" "} Privacy Policy

); }