import type { ReactNode } from "react";

import { WorkspaceSync } from "@/components/layout/workspace-sync";

export default async function WorkspaceLayout({
  children,
  params,
}: {
  children: ReactNode;
  params: Promise<{ workspaceSlug: string }>;
}) {
  const { workspaceSlug } = await params;

  return (
    <WorkspaceSync workspaceSlug={workspaceSlug}>{children}</WorkspaceSync>
  );
}
