18 lines
396 B
TypeScript
18 lines
396 B
TypeScript
|
|
import type { ReactNode } from "react";
|
||
|
|
|
||
|
|
import { WorkspaceSync } from "@/components/layout/workspace-sync";
|
||
|
|
|
||
|
|
export default async function WorkspaceLayout({
|
||
|
|
children,
|
||
|
|
params,
|
||
|
|
}: {
|
||
|
|
children: ReactNode;
|
||
|
|
params: Promise<{ workspaceSlug: string }>;
|
||
|
|
}) {
|
||
|
|
const { workspaceSlug } = await params;
|
||
|
|
|
||
|
|
return (
|
||
|
|
<WorkspaceSync workspaceSlug={workspaceSlug}>{children}</WorkspaceSync>
|
||
|
|
);
|
||
|
|
}
|