mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-26 01:06:23 +02:00
20 lines
444 B
TypeScript
20 lines
444 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>
|
|
);
|
|
}
|