import { HourglassSimpleMediumIcon } from "@phosphor-icons/react"; import { useAuth } from "../../hooks/useAuth"; import { Modal } from "../ui/Modal"; export function PasskeyModal() { const { unlock } = useAuth(); return (

You've been away a while.

Your letters are still there. Just need the key once more.

Nothing was lost.

) => { e.preventDefault(); const formData = new FormData(e.currentTarget); const password = formData.get("password") as string; if (!password) return; await unlock(password); }} >
); }