Hello, everyone
I have the following server component, which is a page.tsx file, i fetch succesfully data passing params.id to my fetcher, and I would then pass it to WidgetSelection which is a client component.
The thing is that that component is getting undefined props and I dont understand why.
export default async function Dashboard({
params,
}: {
params: { id: string };
}) {
const { name, zone, layout } = await getDashboard(params.id);
return (
<DashboardProvider>
<div className="rounded-md w-full relative p-2">
<div className="bg-white p-2 rounded-md shadow-md">
<Breadcrumb name={name} zone={zone} />
<div className="my-4 flex justify-between">
<span className="underline text-xl font-bold decoration-gray-300 underline-offset-8">
{name}
</span>
<div className="flex gap-4">
<button className="px-2 rounded-md transition-colors py-1 bg-gray-200 shadow-sm hover:bg-gray-100">
Cancel
</button>
<span className="inline-block w-[1px] h-full bg-gray-300 mx-0.5" />
<CreateWidgetButton />
<EditButton />
</div>
</div>
</div>
<DashboardContent layout={layout} />
</div>
<WidgetSelection dashboardId={params.id} />
</DashboardProvider>
);