'use client'

import { BarChart3, Home } from 'lucide-react'
import { RoleNav, type NavItem, type RoleNavUser } from '@/components/layouts/role-nav'
import { useTranslations } from 'next-intl'

interface ObserverNavProps {
  user: RoleNavUser
}

export function ObserverNav({ user }: ObserverNavProps) {
  const t = useTranslations('nav')
  const navigation: NavItem[] = [
    {
      name: t('dashboard'),
      href: '/observer',
      icon: Home,
    },
    {
      name: t('reports'),
      href: '/observer/reports',
      icon: BarChart3,
    },
  ]

  return (
    <RoleNav
      navigation={navigation}
      roleName="Observer"
      user={user}
      basePath="/observer"
    />
  )
}
