- 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.
41 lines
846 B
TypeScript
41 lines
846 B
TypeScript
"use client"
|
|
|
|
import { Children, type ReactNode } from "react"
|
|
import { cn } from "@/lib/utils"
|
|
import {
|
|
MAIL_SETTINGS_PAGE_MASONRY_CLASS,
|
|
MAIL_SETTINGS_PAGE_MASONRY_ITEM_CLASS,
|
|
} from "@/lib/mail-chrome-classes"
|
|
|
|
export function AutomationTabMasonry({
|
|
columns,
|
|
children,
|
|
className,
|
|
}: {
|
|
columns: 1 | 2
|
|
children: ReactNode
|
|
className?: string
|
|
}) {
|
|
if (columns === 1) {
|
|
return <div className={cn("space-y-4", className)}>{children}</div>
|
|
}
|
|
|
|
const items = Children.toArray(children).filter(Boolean)
|
|
|
|
return (
|
|
<div
|
|
className={cn(
|
|
"space-y-4 lg:space-y-0",
|
|
MAIL_SETTINGS_PAGE_MASONRY_CLASS,
|
|
className
|
|
)}
|
|
>
|
|
{items.map((child, index) => (
|
|
<div key={index} className={MAIL_SETTINGS_PAGE_MASONRY_ITEM_CLASS}>
|
|
{child}
|
|
</div>
|
|
))}
|
|
</div>
|
|
)
|
|
}
|