mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-25 16:56:22 +02:00
16 lines
430 B
TypeScript
16 lines
430 B
TypeScript
// Server component
|
|
import type React from "react";
|
|
import { use } from "react";
|
|
import { DashboardClientLayout } from "./client-layout";
|
|
|
|
export default function DashboardLayout({
|
|
params,
|
|
children,
|
|
}: {
|
|
params: Promise<{ search_space_id: string }>;
|
|
children: React.ReactNode;
|
|
}) {
|
|
const { search_space_id } = use(params);
|
|
|
|
return <DashboardClientLayout searchSpaceId={search_space_id}>{children}</DashboardClientLayout>;
|
|
}
|