Some checks are pending
E2E / Playwright e2e (push) Waiting to run
- Added SessionGuard component to manage session expiration and online status. - Updated AuthProvider to streamline session fetching and handling. - Introduced IdentityProvidersSection for managing OAuth, SAML, and LDAP identity providers. - Implemented identity provider guides for easier configuration. - Enhanced mail settings with infinite scroll option for improved user experience. - Updated global styles and layout components for better consistency across the application.
24 lines
696 B
TypeScript
24 lines
696 B
TypeScript
import type { Metadata } from "next"
|
|
import { displayFileBaseName } from "@/lib/drive/display-file-name"
|
|
import { suitePageMetadata } from "@/lib/suite/page-metadata"
|
|
|
|
type LayoutProps = {
|
|
children: React.ReactNode
|
|
params: Promise<{ fileId: string }>
|
|
}
|
|
|
|
export async function generateMetadata({ params }: LayoutProps): Promise<Metadata> {
|
|
const { fileId } = await params
|
|
const raw = decodeURIComponent(fileId)
|
|
const baseName = raw.split("/").filter(Boolean).pop() ?? raw
|
|
const name = displayFileBaseName(baseName)
|
|
return suitePageMetadata({
|
|
app: "drive",
|
|
titleSegment: name,
|
|
})
|
|
}
|
|
|
|
export default function EditLayout({ children }: LayoutProps) {
|
|
return <>{children}</>
|
|
}
|