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." : undefined}

Old Email

{oldEmail}

New Email

{newEmail}

Password

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