"use client"; import { Input } from "@/components/ui/input"; import { Button } from "@/components/ui/button"; import Link from "next/link"; import { Card, CardContent, CardDescription, CardHeader, CardTitle, } from "@/components/ui/card"; import { Label } from "@/components/ui/label"; import { toast } from "@/components/ui/use-toast"; import { signUp } from "./action"; export default function SignUpForm() { const submit = async (data: FormData) => { const { error } = await signUp(data); if (error) { toast({ title: "Error", description: error, }); } else { toast({ title: "Success", description: "Account created successfully", }); } }; return ( Sign up Enter your info below to create your account
Already have an account?{" "} Sign in
); } export { SignUpForm };