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