diff --git a/src/components/Sidebar.tsx b/src/components/Sidebar.tsx new file mode 100644 index 0000000..380f745 --- /dev/null +++ b/src/components/Sidebar.tsx @@ -0,0 +1,91 @@ +import { Link } from "react-router-dom"; +import { Separator } from "@/components/ui/separator"; +import { + LayoutDashboard, FolderKanban, ListChecks, CalendarDays, + Settings, LogOut, Layout +} from "lucide-react"; +import { useAuth } from "@/hooks/use-tygarun"; + +interface SidebarProps { + activePath: string; +} + +const navItems = [ + { path: "/", label: "Dashboard", icon: LayoutDashboard }, + { path: "/projects", label: "Projects", icon: FolderKanban }, + { path: "/tasks", label: "Tasks", icon: ListChecks }, + { path: "/timeline", label: "Timeline", icon: CalendarDays }, + { path: "/settings", label: "Settings", icon: Settings }, +]; + +function SidebarContent({ activePath }: SidebarProps) { + const { signout, isSignedIn } = useAuth(); + return ( +
+ {/* ── Logo ── */} +
+ +
+ +
+ TaskFlow + +
+ + + + {/* ── Navigation ── */} + + + + + {/* ── User + Logout ── */} +
+
+
+ AK +
+
+

Alex Kim

+

Admin

+
+
+ +
+
+ ); +} + +export default function Sidebar({ activePath }: SidebarProps) { + return ( + <> + {/* Desktop Sidebar */} + + + ); +} + +export { SidebarContent };