'use client'

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

interface MentorNavProps {
  user: RoleNavUser
}

export function MentorNav({ user }: MentorNavProps) {
  const t = useTranslations('nav')
  const navigation: NavItem[] = [
    {
      name: t('dashboard'),
      href: '/mentor',
      icon: Home,
    },
    {
      name: t('myProjects'),
      href: '/mentor/projects',
      icon: Users,
    },
    {
      name: t('learningHub'),
      href: '/mentor/resources',
      icon: BookOpen,
    },
  ]

  return (
    <RoleNav
      navigation={navigation}
      roleName="Mentor"
      user={user}
      basePath="/mentor"
    />
  )
}
