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
|
|
|
|
2026-03-06 12:17:57 +05:30
|
|
|
return <DashboardClientLayout searchSpaceId={search_space_id}>{children}</DashboardClientLayout>;
|
2025-07-27 10:05:37 -07:00
|
|
|
}
|