"use client"; import Link from "next/link"; import { useState } from "react"; import { useRegister } from "@/hooks/use-auth"; export default function RegisterPage() { const [email, setEmail] = useState(""); const [password, setPassword] = useState(""); const { mutate: register, isPending, error } = useRegister(); const handleSubmit = (e: React.FormEvent) => { e.preventDefault(); register({ email, password }); }; return (
start building your channels
Already have an account?{" "} Sign in