feat(admin) : add utility

This commit is contained in:
2026-07-08 20:04:41 +07:00 Unverified
parent 7dad7ab553
commit 4317853aca
2 changed files with 5 additions and 4 deletions
+4 -3
View File
@@ -63,11 +63,12 @@ export function AdminShell({
return (
<SidebarProvider>
<div className="flex w-full min-h-screen bg-background text-foreground">
<div className="flex w-full min-h-screen text-foreground">
<Sidebar variant="sidebar" collapsible="icon">
<SidebarHeader className="border-b border-border py-4 px-4">
<Link href="/admin">
<div className="flex flex-row items-center justify-between">
<span className="font-bold text-primary text-lg">Admin</span>
<span className="font-bold text-primary text-lg bg-linear-to-r from-fuchsia-600 via-violet-500 to-fuchsia-400">Admin</span>
<div className="flex items-center gap-1">
{(userName || profile) && (
<DropdownMenuAvatar
@@ -80,11 +81,11 @@ export function AdminShell({
<ThemeToggle />
</div>
</div>
</Link>
</SidebarHeader>
<SidebarContent>
<SidebarGroup>
<SidebarGroupLabel>Navigation</SidebarGroupLabel>
<SidebarGroupContent>
<SidebarMenu>
{NAV_ITEMS.map(({ href, label, icon: Icon, isActive }) => (