import useSignup from '@lib/bigcommerce/use-signup' import { Layout } from '@components/core' import { Logo, Modal, Button } from '@components/ui' export default function Login() { const signup = useSignup() // TODO: use this method const handleSignup = async () => { // TODO: validate the password and email before calling the signup // Passwords must be at least 7 characters and contain both alphabetic // and numeric characters. try { await signup({ // This account already exists, so it will throw the "duplicated_email" error email: 'luis@vercel.com', firstName: 'Luis', lastName: 'Alvarez', password: 'luis123', }) } catch (error) { if (error.code === 'duplicated_email') { // TODO: handle duplicated email } } } return (