import { DashboardShellClient } from "@/components/dashboard/dashboard-shell-client";
import type { AppRole, Profile } from "@/types/domain";

export function DashboardShell({
  profile,
  role,
  children
}: {
  profile: Profile;
  role: AppRole;
  children: React.ReactNode;
}) {
  return (
    <DashboardShellClient
      profile={profile}
      role={role}
      idleMinutes={Number(process.env.SESSION_IDLE_MINUTES ?? 30)}
    >
      {children}
    </DashboardShellClient>
  );
}
