'use client' import React, { useState } from 'react' import Link from 'next/link' import { usePathname } from 'next/navigation' const NAV_ITEMS = [ { href: '/', label: 'Dashboard', icon: '๐Ÿ“Š' }, { href: '/rules', label: 'Rule Designer', icon: 'โš™๏ธ' }, { href: '/rule-sets', label: 'Rule Sets', icon: '๐Ÿ“ฆ' }, { href: '/sandbox', label: 'Sandbox', icon: '๐Ÿงช' }, { href: '/decisions', label: 'Decisions', icon: 'โš–๏ธ' }, { href: '/deviations', label: 'Deviations', icon: 'โš ๏ธ' }, { href: '/ai-rules', label: 'AI Rule Creator', icon: '๐Ÿค–' }, { href: '/marketplace', label: 'Marketplace', icon: '๐Ÿ›’' }, { href: '/clients', label: 'Clients', icon: '๐Ÿข' }, { href: '/reports', label: 'Reports', icon: '๐Ÿ“„' }, { href: '/audit', label: 'Audit Trail', icon: '๐Ÿ”' }, { href: '/settings', label: 'Settings', icon: '๐Ÿ”ง' }, ] export function AppShell({ children }: { children: React.ReactNode }) { const pathname = usePathname() const [collapsed, setCollapsed] = useState(false) // Don't show shell on login page if (pathname === '/login') return <>{children} return (
{/* Sidebar */} {/* Main Content */}
{children}
) }