import { FormEvent, useState } from 'react' import { KeyRound } from 'lucide-react' export type PasswordOptions = { title?: string message?: string confirmText?: string } export function PasswordDialog({ options, onClose, }: { options: PasswordOptions onClose: (value: string | null) => void }) { const [password, setPassword] = useState('') const onSubmit = (event: FormEvent) => { event.preventDefault() if (!password) return onClose(password) } return (