Skip to content

⭐️⭐️⭐️ Open-source, self-hosted alternative to Linear and Plane. Project management and issue tracking where teams and AI agents work side by side to plan and ship products.

668 B
Raw Blame
import type { ReactNode } from 'react';
import { cookies } from 'next/headers';
import GodShell from '@/components/layout/GodShell';

// God mode lives outside the project shell: its settings are instance-wide, so no
// project is loaded. The sidebar open/collapsed state uses the same `sidebar_state`
// cookie as the project layout, so the sidebar keeps its width across the two.
export default async function GodLayout({ children }: { children: ReactNode }) {
  const cookieStore = await cookies();
  const defaultSidebarOpen = cookieStore.get('sidebar_state')?.value !== 'false';
  return <GodShell defaultSidebarOpen={defaultSidebarOpen}>{children}</GodShell>;
}