'use client' import { useState, useCallback } from 'react' import dynamic from 'next/dynamic' import ContentHeader from './ContentHeader' // Load sidebar only on the client — prevents any SSR flash of text/labels const Sidebar = dynamic(() => import('./Sidebar'), { ssr: false }) export default function DashboardShell({ siteId, children, }: { siteId: string children: React.ReactNode }) { const [mobileOpen, setMobileOpen] = useState(false) const closeMobile = useCallback(() => setMobileOpen(false), []) const openMobile = useCallback(() => setMobileOpen(true), []) return (