'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 (