"use client" import { useState } from 'react' import { Sidebar } from './sidebar' import { UserSettings } from './user-settings' import { DashboardHome } from './dashboard-home' import { useSidebar } from '@/hooks/useSidebar' export type DashboardSection = 'home' | 'settings' export function Dashboard() { const { getSidebarMargin } = useSidebar() const [activeSection] = useState('home') const renderContent = () => { switch (activeSection) { case 'settings': return case 'home': default: return } } return (
{renderContent()}
) }