import React, { useState } from "react"; import TextInput from "@/components/TextInput"; import Modal from "../Modal"; type Props = { onClose: Function; onSubmit: Function; oldEmail: string; newEmail: string; }; export default function EmailChangeVerificationModal({ onClose, onSubmit, oldEmail, newEmail, }: Props) { const [password, setPassword] = useState(""); return (

Confirm Password

Please confirm your password before changing your email address.{" "} {process.env.NEXT_PUBLIC_STRIPE === "true" && "Updating this field will change your billing email on Stripe as well."}

{process.env.NEXT_PUBLIC_GOOGLE_ENABLED === "true" && (

If you change your email address, any existing Google SSO connections will be removed.

)}

Old Email

{oldEmail}

New Email

{newEmail}

Password

setPassword(e.target.value)} placeholder="••••••••••••••" className="bg-base-200" type="password" autoFocus />
); }