import type { Metadata } from "next" import { displayFileName } 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 { const { fileId } = await params const name = displayFileName(decodeURIComponent(fileId)) return suitePageMetadata({ app: "drive", titleSegment: name, }) } export default function EditLayout({ children }: LayoutProps) { return <>{children} }