import { LockKeyIcon } from "@phosphor-icons/react"; interface PasskeyModalProps { onUnlock: (password: string) => Promise; } export function PasskeyModal({ onUnlock }: PasskeyModalProps) { return (

Authentication Required

We need your passkey to open your letters

Your passkey is used to decrypt your data locally.

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