2026-01-30 13:41:32 +01:00
|
|
|
'use client'
|
|
|
|
|
|
2026-02-05 21:09:06 +01:00
|
|
|
import { BookOpen, Home, Users } from 'lucide-react'
|
|
|
|
|
import { RoleNav, type NavItem, type RoleNavUser } from '@/components/layouts/role-nav'
|
2026-02-11 13:20:52 +01:00
|
|
|
import { useTranslations } from 'next-intl'
|
2026-01-30 13:41:32 +01:00
|
|
|
|
2026-02-05 21:09:06 +01:00
|
|
|
interface MentorNavProps {
|
|
|
|
|
user: RoleNavUser
|
|
|
|
|
}
|
2026-01-30 13:41:32 +01:00
|
|
|
|
2026-02-05 21:09:06 +01:00
|
|
|
export function MentorNav({ user }: MentorNavProps) {
|
2026-02-11 13:20:52 +01:00
|
|
|
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,
|
|
|
|
|
},
|
|
|
|
|
]
|
|
|
|
|
|
2026-01-30 13:41:32 +01:00
|
|
|
return (
|
2026-02-05 21:09:06 +01:00
|
|
|
<RoleNav
|
|
|
|
|
navigation={navigation}
|
|
|
|
|
roleName="Mentor"
|
|
|
|
|
user={user}
|
|
|
|
|
basePath="/mentor"
|
|
|
|
|
/>
|
2026-01-30 13:41:32 +01:00
|
|
|
)
|
|
|
|
|
}
|