import { CalendarDays, ClipboardList, LayoutDashboard, Medal, Swords, Trophy, Users, type LucideIcon } from 'lucide-react'

export type PageId = 'main' | 'matches' | 'leaderboard' | 'admin-competitions' | 'admin-teams' | 'admin-matches' | 'admin-pending-results'

export type NavigationItem = {
  id: PageId
  path: string
  label: string
  title: string
  icon: LucideIcon
  adminOnly?: boolean
}

export const navigationItems: NavigationItem[] = [
  {
    id: 'main',
    path: '/',
    label: 'Dashboard',
    title: 'Dashboard',
    icon: LayoutDashboard,
  },
  {
    id: 'matches',
    path: '/matches',
    label: 'Matches',
    title: 'Matches',
    icon: Swords,
  },
  {
    id: 'leaderboard',
    path: '/leaderboard',
    label: 'Leaderboard',
    title: 'Leaderboard',
    icon: Medal,
  },
  {
    id: 'admin-pending-results',
    path: '/admin/pending-results',
    label: 'Pending Results',
    title: 'Pending Results',
    icon: ClipboardList,
    adminOnly: true,
  },
  {
    id: 'admin-competitions',
    path: '/admin/competitions',
    label: 'Competitions',
    title: 'Manage Competitions',
    icon: Trophy,
    adminOnly: true,
  },
  {
    id: 'admin-teams',
    path: '/admin/teams',
    label: 'Teams',
    title: 'Manage Teams',
    icon: Users,
    adminOnly: true,
  },
  {
    id: 'admin-matches',
    path: '/admin/matches',
    label: 'Matches',
    title: 'Manage Matches',
    icon: CalendarDays,
    adminOnly: true,
  },
]
