SurfSense/surfsense_web/app/dashboard/[search_space_id]/layout.tsx

21 lines
444 B
TypeScript
Raw Normal View History

2025-04-07 23:47:06 -07:00
// Server component
2025-07-27 10:05:37 -07:00
import type React from "react";
import { use } from "react";
import { DashboardClientLayout } from "./client-layout";
2025-04-07 23:47:06 -07:00
2025-07-27 10:05:37 -07:00
export default function DashboardLayout({
params,
children,
}: {
params: Promise<{ search_space_id: string }>;
children: React.ReactNode;
2025-04-07 23:47:06 -07:00
}) {
2025-07-27 10:05:37 -07:00
const { search_space_id } = use(params);
2025-04-07 23:47:06 -07:00
2025-07-27 10:05:37 -07:00
return (
<DashboardClientLayout searchSpaceId={search_space_id}>
2025-07-27 10:05:37 -07:00
{children}
</DashboardClientLayout>
);
}