MeshiTrack/packages/web/src/components/layout/Sidebar.tsx

34 lines
978 B
TypeScript
Raw Normal View History

2026-03-27 14:50:34 +09:00
import Link from 'next/link';
const navItems = [
{ label: 'Dashboard', href: '/dashboard' },
2026-03-28 08:19:48 +09:00
{ label: 'Medicines', href: '/medicines' },
2026-03-27 14:50:34 +09:00
{ label: 'Settings', href: '/settings' },
];
export function Sidebar() {
return (
<aside className="flex w-64 flex-col border-r bg-white">
<div className="flex h-16 items-center border-b px-6">
<Link href="/dashboard" className="text-xl font-bold text-primary-700">
MeshiTrack
</Link>
</div>
<nav className="flex-1 overflow-y-auto p-4">
<ul className="space-y-1">
{navItems.map((item) => (
<li key={item.href}>
<Link
href={item.href}
className="flex items-center gap-3 rounded-lg px-3 py-2 text-sm font-medium text-gray-700 hover:bg-gray-100 transition-colors"
>
{item.label}
</Link>
</li>
))}
</ul>
</nav>
</aside>
);
}