"use client" import { useActionState } from "react" import Input from "@modules/common/components/input" import { LOGIN_VIEW } from "@modules/account/templates/login-template" import ErrorMessage from "@modules/checkout/components/error-message" import { SubmitButton } from "@modules/checkout/components/submit-button" import LocalizedClientLink from "@modules/common/components/localized-client-link" import { signup } from "@lib/data/customer" type Props = { setCurrentView: (view: LOGIN_VIEW) => void } const Register = ({ setCurrentView }: Props) => { const [message, formAction] = useActionState(signup, null) return (

Become a Medusa Store Member

Create your Medusa Store Member profile, and get access to an enhanced shopping experience.

{message?.state === "verification_required" && (
We sent a verification link to {message.email}. Please check your inbox to verify your email, then sign in.
)}
By creating an account, you agree to Medusa Store's{" "} Privacy Policy {" "} and{" "} Terms of Use . Join Already a member?{" "} .
) } export default Register