"use client";
import { signup } from "@/app/lib/actions/auth";
import Link from "next/link";
import { useFormState, useFormStatus } from "react-dom";
import signupSvg from "@/app/signup/signup.svg";
import Image from "next/image";
export default function Page() {
const [errorMessage, dispatch] = useFormState(signup, undefined);
return (
);
}
// export default function Page() {
// const [errorMessage, dispatch] = useFormState(signup, undefined);
// return (
//
// );
// }
function SignupButton({ className }: { className: string | undefined }) {
const { pending } = useFormStatus();
const handleClick = (event: React.MouseEvent) => {
if (pending) {
event.preventDefault();
}
};
return (
);
}