import { Dialog, DialogContent, DialogDescription, DialogHeader, DialogTitle } from '@/components/ui/dialog' import { Drawer, DrawerContent, DrawerHeader, DrawerTitle, DrawerDescription } from '@/components/ui/drawer' import { useScreenSize } from '@/providers/ScreenSizeProvider' import { Dispatch, useCallback } from 'react' import AccountManager from '../AccountManager' export default function LoginDialog({ open, setOpen, blockClose = false }: { open: boolean setOpen: Dispatch /** Keep open while a NIP-07 extension authorize dialog is in progress. */ blockClose?: boolean }) { const { isSmallScreen } = useScreenSize() const handleOpenChange = useCallback( (next: boolean) => { if (!next && blockClose) return setOpen(next) }, [blockClose, setOpen] ) if (isSmallScreen) { return ( Account Manager Manage your Nostr account and settings
setOpen(false)} />
) } return ( Account Manager Manage your Nostr account and settings setOpen(false)} /> ) }