ultisuite-client/components/suite/account-switcher-sheet.tsx
R3D347HR4Y 6ec95262af Add OnlyOffice integration and update project configurations
- Updated .env.example to include configuration for OnlyOffice Document Server.
- Modified the workspace configuration to remove the drive-suite path.
- Adjusted TypeScript environment imports for consistency.
- Enhanced Next.js configuration to disable canvas in Webpack.
- Updated package.json to include new dependencies for OnlyOffice and PDF.js.
- Added global styles for OnlyOffice theme integration in the CSS.
- Created new layout and page components for the Drive feature, including public sharing and editing functionalities.
- Updated metadata handling across various layouts to reflect the new app structure.
2026-06-07 15:49:21 +02:00

37 lines
1.0 KiB
TypeScript

"use client"
import { Sheet, SheetContent, SheetDescription, SheetTitle } from "@/components/ui/sheet"
import { AccountSwitcherPanel } from "@/components/suite/account-switcher-panel"
import {
DRIVE_SHEET_CONTENT,
DRIVE_SHEET_OVERLAY,
} from "@/lib/drive/drive-dialog-styles"
import { cn } from "@/lib/utils"
export function AccountSwitcherSheet({
open,
onOpenChange,
}: {
open: boolean
onOpenChange: (open: boolean) => void
}) {
const close = () => onOpenChange(false)
return (
<Sheet open={open} onOpenChange={onOpenChange}>
<SheetContent
side="bottom"
hideClose
overlayClassName={DRIVE_SHEET_OVERLAY}
className={cn(DRIVE_SHEET_CONTENT, "max-h-[min(90dvh,560px)] gap-0")}
>
<SheetTitle className="sr-only">Comptes connectés</SheetTitle>
<SheetDescription className="sr-only">
Changer de compte ou en ajouter un.
</SheetDescription>
<AccountSwitcherPanel onClose={close} />
</SheetContent>
</Sheet>
)
}