feat(manager): shell navigation from modules + permission keys; profile menu language
Platform-v2 step 2.6a: - shell/nav.js: one nav definition (module + key per page) read by the sidebar, the page titles and a RouteGuard around the layout outlet (and /kds): a module that's off hides its items and its routes say "turned off"; a missing key hides the item and the route says "no access". Same keys as before (v1 permission names mapped), plus the module check - labels/breadcrumbs are keys in a new i18n namespace `manager` (en + el) - removed the browser-only feature toggles (usePhase2Features, Settings -> Λειτουργίες, F-033), PermissionGuard and usePermissions - profile menu: language, saved to the profile (PATCH /api/auth/me) and bootstrap reloaded - e2e manager.mjs: module off/on, no-key user, language switch live + saved Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,25 +0,0 @@
|
||||
import { ShieldAlert } from 'lucide-react'
|
||||
import usePermissions from '../hooks/usePermissions'
|
||||
|
||||
/**
|
||||
* Wraps a route element. Renders a 403 screen if the user lacks the required permission.
|
||||
* Usage: <PermissionGuard perm="viewReports"><TodayPage /></PermissionGuard>
|
||||
*/
|
||||
export default function PermissionGuard({ perm, children }) {
|
||||
const perms = usePermissions()
|
||||
|
||||
if (!perms[perm]) {
|
||||
return (
|
||||
<div className="flex flex-col items-center justify-center h-full gap-4 text-center p-8">
|
||||
<ShieldAlert size={48} className="text-red-400" />
|
||||
<h2 className="text-xl font-semibold text-gray-800">Δεν έχετε πρόσβαση</h2>
|
||||
<p className="text-gray-500 max-w-sm">
|
||||
Δεν έχετε τα απαραίτητα δικαιώματα για αυτή τη σελίδα.
|
||||
Επικοινωνήστε με τον διαχειριστή εάν νομίζετε ότι πρόκειται για λάθος.
|
||||
</p>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
return children
|
||||
}
|
||||
@@ -1,98 +1,14 @@
|
||||
import { NavLink, useLocation } from 'react-router-dom'
|
||||
import { useState, useEffect, useRef } from 'react'
|
||||
import {
|
||||
LayoutDashboard, LayoutGrid, ShoppingBag,
|
||||
BookUser, Users, Receipt, CreditCard,
|
||||
Package, TableProperties, UserCog, CalendarDays, Trash2, Boxes,
|
||||
BarChart2, TrendingUp, Users2, ShoppingCart, Tag, Activity, Printer, Ban, Percent, ConciergeBell, FileText,
|
||||
AppWindow, Settings, ChevronDown, CookingPot, StickyNote,
|
||||
} from 'lucide-react'
|
||||
import { useState, useEffect } from 'react'
|
||||
import { ChevronDown } from 'lucide-react'
|
||||
import { useAccess } from '@xenia/access'
|
||||
import { useTranslation } from '@xenia/i18n'
|
||||
import { getIncomingOrders } from '../api/client'
|
||||
import { isFeatureEnabled } from '../hooks/usePhase2Features'
|
||||
import usePermissions from '../hooks/usePermissions'
|
||||
import { NAV, NAV_BOTTOM, canSee } from '../shell/nav'
|
||||
|
||||
// ─── Nav structure ────────────────────────────────────────────────────────────
|
||||
|
||||
// `perm` — key from usePermissions(). If set, item is hidden when user lacks that permission.
|
||||
function buildNav(pendingCount) {
|
||||
return [
|
||||
{
|
||||
category: 'Operation',
|
||||
items: [
|
||||
{ type: 'solo', to: '/dashboard', icon: LayoutDashboard, label: 'Εικόνα' },
|
||||
{ type: 'solo', to: '/tables', icon: LayoutGrid, label: 'Τραπέζια' },
|
||||
{ type: 'solo', to: '/online-orders', icon: ShoppingBag, label: 'Online Παραγγ.', badge: pendingCount, phase2: 'online-orders' },
|
||||
],
|
||||
},
|
||||
{
|
||||
category: 'Financial',
|
||||
items: [
|
||||
{
|
||||
type: 'group', id: 'crm', icon: BookUser, label: 'CRM',
|
||||
children: [
|
||||
{ to: '/crm/contacts', icon: BookUser, label: 'Επαφές', phase2: 'contacts' },
|
||||
{ to: '/crm/customers', icon: Users, label: 'Πελάτες', phase2: 'customers' },
|
||||
],
|
||||
},
|
||||
{
|
||||
type: 'group', id: 'financials', icon: Receipt, label: 'Οικονομικά',
|
||||
children: [
|
||||
{ to: '/financials/expenses', icon: Receipt, label: 'Έξοδα', phase2: 'expenses' },
|
||||
{ to: '/financials/tabs', icon: CreditCard, label: 'Καρτέλες Πελ.', phase2: 'tabs' },
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
category: 'Headquarters',
|
||||
items: [
|
||||
{
|
||||
type: 'group', id: 'management', icon: Package, label: 'Διαχείριση',
|
||||
children: [
|
||||
{ to: '/management/products', icon: Package, label: 'Προϊόντα', perm: 'manageMenu' },
|
||||
{ to: '/management/tables', icon: TableProperties, label: 'Τραπέζια', perm: 'manageTables' },
|
||||
{ to: '/management/staff', icon: UserCog, label: 'Προσωπικό', perm: 'manageStaff' },
|
||||
{ to: '/management/schedule', icon: CalendarDays, label: 'Πρόγραμμα', perm: 'manageStaff', phase2: 'schedule' },
|
||||
{ to: '/management/prep-zones', icon: CookingPot, label: 'Ζώνες Ετοιμασίας', perm: 'manageMenu' },
|
||||
{ to: '/management/pricing', icon: Percent, label: 'Προσφορές & Τιμές', perm: 'manageMenu' },
|
||||
{ to: '/notes', icon: StickyNote, label: 'Σημειώσεις' },
|
||||
],
|
||||
},
|
||||
{
|
||||
type: 'group', id: 'inventory', icon: Boxes, label: 'Αποθήκη',
|
||||
children: [
|
||||
{ to: '/inventory/throwaways', icon: Trash2, label: 'Απορρίμματα', phase2: 'waste' },
|
||||
{ to: '/inventory/stock', icon: Boxes, label: 'Απόθεμα', placeholder: true },
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
category: 'Overwatch',
|
||||
perm: 'viewReports',
|
||||
items: [
|
||||
{
|
||||
type: 'group', id: 'reports', icon: BarChart2, label: 'Αναφορές',
|
||||
children: [
|
||||
{ to: '/reports/today', icon: Activity, label: 'Σήμερα' },
|
||||
{ to: '/reports/store', icon: TrendingUp, label: 'Κατάστημα' },
|
||||
{ to: '/reports/staff', icon: Users2, label: 'Προσωπικό' },
|
||||
{ to: '/reports/products', icon: ShoppingCart, label: 'Προϊόντα' },
|
||||
{ to: '/reports/prep-zones', icon: ConciergeBell, label: 'Ζώνες Ετοιμασίας' },
|
||||
{ to: '/reports/expenses', icon: FileText, label: 'Έξοδα' },
|
||||
{ to: '/reports/technical', icon: Printer, label: 'Τεχνικά' },
|
||||
{ to: '/reports/misc', icon: Tag, label: 'Λοιπά' },
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
]
|
||||
}
|
||||
|
||||
const BOTTOM_ITEMS = [
|
||||
{ to: '/apps', icon: AppWindow, label: 'Εφαρμογές' },
|
||||
{ to: '/settings', icon: Settings, label: 'Ρυθμίσεις', perm: 'manageSettings' },
|
||||
]
|
||||
// The sidebar is drawn from shell/nav.js: an item shows when its module is on and the user
|
||||
// holds its key (platform bootstrap, @xenia/access). Plan step 2.6a; this replaces the
|
||||
// browser-only feature toggles (F-033).
|
||||
|
||||
// ─── Helpers ──────────────────────────────────────────────────────────────────
|
||||
|
||||
@@ -103,12 +19,13 @@ function isChildActive(children, pathname) {
|
||||
// ─── Child link ───────────────────────────────────────────────────────────────
|
||||
|
||||
function ChildLink({ to, icon: Icon, label, placeholder }) {
|
||||
const { t } = useTranslation('manager')
|
||||
if (placeholder) {
|
||||
return (
|
||||
<div className="flex items-center gap-2.5 px-3 py-2 mx-2 rounded-md text-[13px] text-primary-400 cursor-default select-none">
|
||||
<Icon size={14} className="shrink-0 opacity-50" />
|
||||
<span>{label}</span>
|
||||
<span className="ml-auto text-[10px] font-semibold bg-primary-700 text-primary-300 px-1.5 py-0.5 rounded">soon</span>
|
||||
<span>{t(label)}</span>
|
||||
<span className="ml-auto text-[10px] font-semibold bg-primary-700 text-primary-300 px-1.5 py-0.5 rounded">{t('nav.soon')}</span>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
@@ -127,7 +44,7 @@ function ChildLink({ to, icon: Icon, label, placeholder }) {
|
||||
{({ isActive }) => (
|
||||
<>
|
||||
<Icon size={14} className="shrink-0" />
|
||||
<span>{label}</span>
|
||||
<span>{t(label)}</span>
|
||||
{isActive && <span className="ml-auto w-1 h-1 rounded-full bg-sky-400 shrink-0" />}
|
||||
</>
|
||||
)}
|
||||
@@ -137,31 +54,23 @@ function ChildLink({ to, icon: Icon, label, placeholder }) {
|
||||
|
||||
// ─── Group item (collapsible parent) ─────────────────────────────────────────
|
||||
|
||||
function GroupItem({ id, icon: Icon, label, children, openGroup, onToggle, perms }) {
|
||||
function GroupItem({ group, icon: Icon, label, children, openGroup, onToggle }) {
|
||||
const { t } = useTranslation('manager')
|
||||
const location = useLocation()
|
||||
const hasActive = isChildActive(children, location.pathname)
|
||||
const isOpen = openGroup === id
|
||||
|
||||
// Filter out phase2-gated children and children the user lacks permission for
|
||||
const visibleChildren = children.filter(c => {
|
||||
if (c.phase2 && !isFeatureEnabled(c.phase2)) return false
|
||||
if (c.perm && !perms[c.perm]) return false
|
||||
return true
|
||||
})
|
||||
|
||||
if (visibleChildren.length === 0) return null
|
||||
const isOpen = openGroup === group
|
||||
|
||||
return (
|
||||
<div>
|
||||
<button
|
||||
onClick={() => onToggle(id)}
|
||||
onClick={() => onToggle(group)}
|
||||
className={`w-full flex items-center gap-3 px-3 py-2.5 rounded-lg text-sm font-medium transition-colors ` +
|
||||
(hasActive
|
||||
? 'text-white bg-primary-700'
|
||||
: 'text-primary-100 hover:bg-primary-700 hover:text-white')}
|
||||
>
|
||||
<Icon size={18} className="shrink-0" />
|
||||
<span className="flex-1 text-left">{label}</span>
|
||||
<span className="flex-1 text-left">{t(label)}</span>
|
||||
<ChevronDown
|
||||
size={14}
|
||||
className={`shrink-0 transition-transform duration-200 ${isOpen ? 'rotate-180' : ''}`}
|
||||
@@ -170,7 +79,7 @@ function GroupItem({ id, icon: Icon, label, children, openGroup, onToggle, perms
|
||||
|
||||
{isOpen && (
|
||||
<div className="mt-0.5 mb-1 space-y-0.5 py-1 border-l border-primary-600 ml-5">
|
||||
{visibleChildren.map(child => (
|
||||
{children.map(child => (
|
||||
<ChildLink key={child.to} {...child} />
|
||||
))}
|
||||
</div>
|
||||
@@ -182,6 +91,7 @@ function GroupItem({ id, icon: Icon, label, children, openGroup, onToggle, perms
|
||||
// ─── Solo item (direct link) ──────────────────────────────────────────────────
|
||||
|
||||
function SoloItem({ to, icon: Icon, label, badge, onNavigate }) {
|
||||
const { t } = useTranslation('manager')
|
||||
return (
|
||||
<NavLink
|
||||
to={to}
|
||||
@@ -200,23 +110,39 @@ function SoloItem({ to, icon: Icon, label, badge, onNavigate }) {
|
||||
</span>
|
||||
)}
|
||||
</div>
|
||||
<span>{label}</span>
|
||||
<span>{t(label)}</span>
|
||||
</NavLink>
|
||||
)
|
||||
}
|
||||
|
||||
// ─── Sidebar ──────────────────────────────────────────────────────────────────
|
||||
|
||||
/** The sections with only what this user may see (empty groups and sections dropped). */
|
||||
function visibleNav(access) {
|
||||
return NAV
|
||||
.map(section => ({
|
||||
...section,
|
||||
items: section.items
|
||||
.map(item => (item.children
|
||||
? { ...item, children: item.children.filter(c => canSee(c, access)) }
|
||||
: item))
|
||||
.filter(item => (item.children ? item.children.length > 0 : canSee(item, access))),
|
||||
}))
|
||||
.filter(section => section.items.length > 0)
|
||||
}
|
||||
|
||||
export default function Sidebar() {
|
||||
const { t } = useTranslation('manager')
|
||||
const access = useAccess()
|
||||
const [pendingCount, setPendingCount] = useState(0)
|
||||
const [openGroup, setOpenGroup] = useState(null)
|
||||
const [, featTick] = useState(0)
|
||||
const location = useLocation()
|
||||
const pollRef = useRef(null)
|
||||
const perms = usePermissions()
|
||||
const nav = visibleNav(access)
|
||||
const onlineOrdersShown = nav.some(s => s.items.some(i => i.badge === 'onlineOrders'))
|
||||
|
||||
// Online orders badge polling
|
||||
// Online orders badge (only while that page is available)
|
||||
useEffect(() => {
|
||||
if (!onlineOrdersShown) return undefined
|
||||
async function fetchPending() {
|
||||
try {
|
||||
const { data } = await getIncomingOrders()
|
||||
@@ -224,28 +150,16 @@ export default function Sidebar() {
|
||||
} catch { /* non-critical */ }
|
||||
}
|
||||
fetchPending()
|
||||
pollRef.current = setInterval(fetchPending, 20_000)
|
||||
return () => clearInterval(pollRef.current)
|
||||
}, [])
|
||||
|
||||
// Re-render when feature flags change
|
||||
useEffect(() => {
|
||||
const handler = () => featTick(n => n + 1)
|
||||
window.addEventListener('phase2features', handler)
|
||||
window.addEventListener('storage', handler)
|
||||
return () => {
|
||||
window.removeEventListener('phase2features', handler)
|
||||
window.removeEventListener('storage', handler)
|
||||
}
|
||||
}, [])
|
||||
const timer = setInterval(fetchPending, 20_000)
|
||||
return () => clearInterval(timer)
|
||||
}, [onlineOrdersShown])
|
||||
|
||||
// Auto-open the group that contains the active route on location change
|
||||
useEffect(() => {
|
||||
const nav = buildNav(0)
|
||||
for (const section of nav) {
|
||||
for (const section of NAV) {
|
||||
for (const item of section.items) {
|
||||
if (item.type === 'group' && isChildActive(item.children, location.pathname)) {
|
||||
setOpenGroup(item.id)
|
||||
if (item.children && isChildActive(item.children, location.pathname)) {
|
||||
setOpenGroup(item.group)
|
||||
return
|
||||
}
|
||||
}
|
||||
@@ -260,10 +174,8 @@ export default function Sidebar() {
|
||||
setOpenGroup(null)
|
||||
}
|
||||
|
||||
const nav = buildNav(pendingCount)
|
||||
|
||||
return (
|
||||
<aside className="flex flex-col bg-primary-800 text-white shrink-0 w-56 h-full sidebar-scroll">
|
||||
<aside className="flex flex-col bg-primary-800 text-white shrink-0 w-56 h-full sidebar-scroll" data-testid="sidebar">
|
||||
{/* Brand */}
|
||||
<div className="flex items-center px-4 py-4 border-b border-primary-700 shrink-0">
|
||||
<span className="font-bold text-lg tracking-wide">XeniaPOS</span>
|
||||
@@ -271,58 +183,35 @@ export default function Sidebar() {
|
||||
|
||||
{/* Main nav */}
|
||||
<nav className="flex-1 py-3 px-2 space-y-4">
|
||||
{nav.map(({ category, perm: sectionPerm, items }) => {
|
||||
// Hide entire section if user lacks section-level permission
|
||||
if (sectionPerm && !perms[sectionPerm]) return null
|
||||
|
||||
const visibleItems = items.filter(item => {
|
||||
if (item.type === 'solo') {
|
||||
if (item.perm && !perms[item.perm]) return false
|
||||
return !item.phase2 || isFeatureEnabled(item.phase2)
|
||||
}
|
||||
if (item.type === 'group') {
|
||||
const visible = item.children.filter(c => {
|
||||
if (c.phase2 && !isFeatureEnabled(c.phase2)) return false
|
||||
if (c.perm && !perms[c.perm]) return false
|
||||
return true
|
||||
})
|
||||
return visible.length > 0
|
||||
}
|
||||
return true
|
||||
})
|
||||
if (visibleItems.length === 0) return null
|
||||
|
||||
return (
|
||||
<div key={category}>
|
||||
<div className="flex items-center gap-2 px-3 mb-1.5 select-none" style={{ opacity: 0.45 }}>
|
||||
<span className="text-[9.5px] font-bold uppercase tracking-widest text-primary-100 whitespace-nowrap">
|
||||
{category}
|
||||
</span>
|
||||
<div className="flex-1" style={{ height: 1, background: 'rgba(255,255,255,0.2)' }} />
|
||||
</div>
|
||||
<div className="space-y-0.5">
|
||||
{visibleItems.map(item =>
|
||||
item.type === 'solo' ? (
|
||||
<SoloItem key={item.to} {...item} onNavigate={handleSoloClick} />
|
||||
) : (
|
||||
<GroupItem
|
||||
key={item.id}
|
||||
{...item}
|
||||
openGroup={openGroup}
|
||||
onToggle={handleGroupToggle}
|
||||
perms={perms}
|
||||
/>
|
||||
)
|
||||
)}
|
||||
</div>
|
||||
{nav.map(({ section, items }) => (
|
||||
<div key={section}>
|
||||
<div className="flex items-center gap-2 px-3 mb-1.5 select-none" style={{ opacity: 0.45 }}>
|
||||
<span className="text-[9.5px] font-bold uppercase tracking-widest text-primary-100 whitespace-nowrap">
|
||||
{t(section)}
|
||||
</span>
|
||||
<div className="flex-1" style={{ height: 1, background: 'rgba(255,255,255,0.2)' }} />
|
||||
</div>
|
||||
)
|
||||
})}
|
||||
<div className="space-y-0.5">
|
||||
{items.map(item =>
|
||||
item.children ? (
|
||||
<GroupItem key={item.group} {...item} openGroup={openGroup} onToggle={handleGroupToggle} />
|
||||
) : (
|
||||
<SoloItem
|
||||
key={item.to}
|
||||
{...item}
|
||||
badge={item.badge === 'onlineOrders' ? pendingCount : undefined}
|
||||
onNavigate={handleSoloClick}
|
||||
/>
|
||||
)
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
))}
|
||||
</nav>
|
||||
|
||||
{/* Divider + bottom items */}
|
||||
<div className="shrink-0 px-2 pb-3 border-t border-primary-700 pt-3 space-y-0.5">
|
||||
{BOTTOM_ITEMS.filter(item => !item.perm || perms[item.perm]).map(item => (
|
||||
{NAV_BOTTOM.filter(item => canSee(item, access)).map(item => (
|
||||
<SoloItem key={item.to} {...item} onNavigate={handleSoloClick} />
|
||||
))}
|
||||
</div>
|
||||
|
||||
@@ -1,7 +1,20 @@
|
||||
import { useState, useEffect, useRef } from 'react'
|
||||
import { ChevronDown, User, LogOut } from 'lucide-react'
|
||||
import { ChevronDown, User, LogOut, Languages, Check } from 'lucide-react'
|
||||
import toast from 'react-hot-toast'
|
||||
import { useAccess } from '@xenia/access'
|
||||
import { LANGUAGE_NAMES, setUserLanguage, useLanguage, useTranslation } from '@xenia/i18n'
|
||||
import client from '../api/client'
|
||||
|
||||
/**
|
||||
* The profile menu (plan step 2.6a): edit profile, language, sign out.
|
||||
* The language changes the screen at once, is saved to the user's profile
|
||||
* (PATCH /api/auth/me) and then the platform bootstrap is reloaded, so it also
|
||||
* applies on the next login and in the other apps (D-12).
|
||||
*/
|
||||
export default function UserMenuButton({ displayName, onEditProfile, onSignOut }) {
|
||||
const { t, i18n } = useTranslation('manager')
|
||||
const { language, languages } = useLanguage()
|
||||
const { refresh } = useAccess()
|
||||
const [open, setOpen] = useState(false)
|
||||
const ref = useRef(null)
|
||||
|
||||
@@ -22,32 +35,68 @@ export default function UserMenuButton({ displayName, onEditProfile, onSignOut }
|
||||
}
|
||||
}, [open])
|
||||
|
||||
async function chooseLanguage(lng) {
|
||||
setOpen(false)
|
||||
if (lng === language) return
|
||||
try {
|
||||
await setUserLanguage(i18n, lng, { save: l => client.patch('/api/auth/me', { language: l }) })
|
||||
await refresh()
|
||||
} catch {
|
||||
toast.error(t('common:language.notSaved'))
|
||||
}
|
||||
}
|
||||
|
||||
return (
|
||||
<div className="relative" ref={ref}>
|
||||
<button
|
||||
onClick={() => setOpen(o => !o)}
|
||||
className="flex items-center gap-1 text-[13px] text-slate-600 font-medium hover:text-slate-900 transition-colors"
|
||||
aria-haspopup="menu"
|
||||
aria-expanded={open}
|
||||
data-testid="user-menu"
|
||||
>
|
||||
{displayName}
|
||||
<ChevronDown className={`h-3.5 w-3.5 text-slate-400 transition-transform ${open ? 'rotate-180' : ''}`} />
|
||||
</button>
|
||||
|
||||
{open && (
|
||||
<div className="absolute right-0 top-full mt-1.5 w-44 rounded-xl border border-slate-200 bg-white shadow-lg py-1 z-50">
|
||||
<div className="absolute right-0 top-full mt-1.5 w-52 rounded-xl border border-slate-200 bg-white shadow-lg py-1 z-50" role="menu">
|
||||
<button
|
||||
role="menuitem"
|
||||
onClick={() => { setOpen(false); onEditProfile() }}
|
||||
className="flex w-full items-center gap-2.5 px-3.5 py-2 text-[13px] text-slate-700 hover:bg-slate-50 transition-colors"
|
||||
>
|
||||
<User className="h-3.5 w-3.5 text-slate-400" />
|
||||
Edit Profile
|
||||
{t('profile.edit')}
|
||||
</button>
|
||||
|
||||
<div className="my-1 border-t border-slate-100" />
|
||||
<div className="flex items-center gap-2.5 px-3.5 pt-1.5 pb-1 text-[11px] font-semibold uppercase tracking-wide text-slate-400">
|
||||
<Languages className="h-3.5 w-3.5" />
|
||||
{t('profile.language')}
|
||||
</div>
|
||||
{languages.map(lng => (
|
||||
<button
|
||||
key={lng}
|
||||
role="menuitemradio"
|
||||
aria-checked={lng === language}
|
||||
lang={lng}
|
||||
onClick={() => chooseLanguage(lng)}
|
||||
className="flex w-full items-center gap-2.5 px-3.5 py-2 pl-9 text-[13px] text-slate-700 hover:bg-slate-50 transition-colors"
|
||||
>
|
||||
<span className="flex-1 text-left">{LANGUAGE_NAMES[lng]}</span>
|
||||
{lng === language && <Check className="h-3.5 w-3.5 text-primary-700" />}
|
||||
</button>
|
||||
))}
|
||||
|
||||
<div className="my-1 border-t border-slate-100" />
|
||||
<button
|
||||
role="menuitem"
|
||||
onClick={() => { setOpen(false); onSignOut() }}
|
||||
className="flex w-full items-center gap-2.5 px-3.5 py-2 text-[13px] text-rose-500 hover:bg-rose-50 transition-colors"
|
||||
>
|
||||
<LogOut className="h-3.5 w-3.5" />
|
||||
Sign Out
|
||||
{t('profile.signOut')}
|
||||
</button>
|
||||
</div>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user