import { 
  LayoutDashboard, 
  Building2, 
  Users, 
  Briefcase, 
  CheckSquare, 
  UserCircle, 
  TrendingUp, 
  UserPlus, 
  DollarSign, 
  FileText, 
  BarChart3, 
  Settings,
  Wrench,
  Receipt,
  Target
} from 'lucide-react';
import { NavGroup } from './types';

export const NAVIGATION_GROUPS: NavGroup[] = [
  {
    label: 'Main',
    items: [
      { title: 'Dashboard', href: '/', icon: LayoutDashboard, permission: 'dashboard.view' },
      { title: 'Operations Control', href: '/operations', icon: Target, permission: 'operations.view' },
    ],
  },
  {
    label: 'Operations',
    items: [
      { title: 'Organization', href: '/organization', icon: Building2, permission: 'hr.view' },
      { title: 'Employees', href: '/employees', icon: Users, permission: 'hr.view' },
      { title: 'Recruitment', href: '/recruitment', icon: UserPlus, permission: 'hr.view' },
      { title: 'Engineers', href: '/engineers', icon: Wrench, permission: 'hr.view' },
    ],
  },
  {
    label: 'Projects',
    items: [
      { title: 'Projects', href: '/projects', icon: Briefcase, permission: 'projects.view' },
      { title: 'Tasks & Timesheets', href: '/tasks', icon: CheckSquare, permission: 'projects.view' },
      { title: 'Clients', href: '/clients', icon: UserCircle, permission: 'crm.view' },
    ],
  },
  {
    label: 'Sales & Finance',
    items: [
      { title: 'CRM / Sales', href: '/crm', icon: TrendingUp, permission: 'crm.view' },
      { title: 'Finance', href: '/finance', icon: DollarSign, permission: 'finance.view' },
      { title: 'Company Expenses', href: '/expenses', icon: Receipt, permission: 'finance.view' },
      { title: 'Bank Details', href: '/bank-details', icon: Building2, permission: 'finance.view' },
    ],
  },
  {
    label: 'Insights',
    items: [
      { title: 'Documents', href: '/documents', icon: FileText, permission: 'documents.view' },
      { title: 'Reports & Analytics', href: '/reports', icon: BarChart3, permission: 'dashboard.view' },
    ],
  },
  {
    label: 'System',
    items: [
      { title: 'Assigned Users', href: '/users', icon: Users, permission: 'settings.view' },
      { title: 'Settings', href: '/settings', icon: Settings, permission: 'settings.view' },
    ],
  },
];

export const NAVIGATION_ITEMS = NAVIGATION_GROUPS.flatMap(group => group.items);
