import { FormEvent, useState } from 'react' import { LockKeyhole } from 'lucide-react' export type PinOptions = { title?: string message?: string profileName: string } export function PinDialog({ options, onClose, }: { options: PinOptions onClose: (value: string | null) => void }) { const [pin, setPin] = useState('') const onSubmit = (event: FormEvent) => { event.preventDefault() const trimmed = pin.trim() if (!trimmed) return onClose(trimmed) } return (