import { cn } from "../lib/utils"; import Controls from "../windowControls"; export default function CreateScreen({ children, className, }: { children: React.ReactNode; className?: string; }) { return (
<> {children}
); } import { Button } from "../cmp/button"; import { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger, } from "../cmp/alert-dialog"; import { useIsMobile } from "../lib/utils"; export function ClearStorageButton({ className }: { className?: string }) { const isMobile = useIsMobile(); return ( Clear storage } /> Are you sure you want to clear storage? This action cannot be undone. It will clear all your settings and credentials. { localStorage.clear(); for (const db of await indexedDB.databases()) { indexedDB.deleteDatabase(db.name!); } location.reload(); }} > Continue Cancel ); } export function StorageDestoryer() { const isMobile = useIsMobile(); return (
); }