'use client'; interface StorageSessionPromptProps { open: boolean; isSubmitting: boolean; password: string; error: string; title?: string; description?: string; onPasswordChange: (password: string) => void; onSubmit: (event: React.FormEvent) => void; onCancel: () => void; } export function StorageSessionPrompt({ open, isSubmitting, password, error, title = 'Confirm your password', description = 'Please confirm your password to continue uploading to your storage.', onPasswordChange, onSubmit, onCancel, }: StorageSessionPromptProps) { if (!open) { return null; } return (
event.stopPropagation()} >

{title}

{description}

onPasswordChange(event.target.value)} autoFocus />
{error && (
{error}
)}
); }