/* eslint-disable */ "use client"; import Link from "next/link"; import Button from "@/lib/components/ui/Button"; import Card from "@/lib/components/ui/Card"; import Field from "@/lib/components/ui/Field"; import PageHeading from "@/lib/components/ui/PageHeading"; import { useSignUp } from "./hooks/useSignUp"; import { useTranslation } from "react-i18next"; export default function SignUp() { const { handleSignUp, isPending, email, password, setEmail, setPassword } = useSignUp(); const {t} = useTranslation(["translation","signUp"]); return (
{ e.preventDefault(); handleSignUp(); }} className="flex flex-col gap-2" data-testid="sign-up-form" > setEmail(e.target.value)} data-testid="email-field" /> setPassword(e.target.value)} placeholder={t("password")} data-testid="password-field" />
{t("login",{ ns: 'signUp' })}
); }