2026-09-20 08:53:52 +02:00
|
|
|
import { CalendarDays, Mail } from 'lucide-react'
|
|
|
|
|
import { NavLink } from 'react-router-dom'
|
|
|
|
|
import type { User } from '../../types'
|
2026-09-20 07:21:10 +02:00
|
|
|
|
2026-09-20 08:53:52 +02:00
|
|
|
export function WorkspaceUtilities({ user }: { user: User | null }) {
|
|
|
|
|
const profileLabel = user?.displayName || user?.email || 'Profile'
|
|
|
|
|
return (
|
|
|
|
|
<nav className="workspace-utilities" aria-label="Account navigation">
|
|
|
|
|
<NavLink className="utility-link" to="/inbox">
|
|
|
|
|
<Mail size={18} aria-hidden="true" />
|
|
|
|
|
<span>Inbox</span>
|
|
|
|
|
</NavLink>
|
|
|
|
|
<NavLink className="utility-link" to="/calendar">
|
|
|
|
|
<CalendarDays size={18} aria-hidden="true" />
|
|
|
|
|
<span>Calendar</span>
|
|
|
|
|
</NavLink>
|
|
|
|
|
<NavLink className="utility-link profile-utility" to="/profile">
|
|
|
|
|
<span className="avatar tiny" aria-hidden="true">
|
|
|
|
|
{profileLabel.slice(0, 2).toUpperCase()}
|
|
|
|
|
</span>
|
|
|
|
|
<span>{profileLabel}</span>
|
|
|
|
|
</NavLink>
|
|
|
|
|
</nav>
|
|
|
|
|
)
|
2026-09-20 07:21:10 +02:00
|
|
|
}
|