2024-12-05 11:56:09 -08:00
|
|
|
import { RobotIcon } from "@/components/icons/RobotIcon";
|
|
|
|
|
import { NavLinkGroup } from "@/components/NavLinkGroup";
|
|
|
|
|
import { useSidebarStore } from "@/store/SidebarStore";
|
2024-04-01 21:34:52 +03:00
|
|
|
import { cn } from "@/util/utils";
|
2024-12-05 11:56:09 -08:00
|
|
|
import { GearIcon, LightningBoltIcon } from "@radix-ui/react-icons";
|
2024-04-01 21:34:52 +03:00
|
|
|
|
2024-12-05 11:56:09 -08:00
|
|
|
function SideNav() {
|
|
|
|
|
const { collapsed } = useSidebarStore();
|
2024-07-24 05:22:16 -07:00
|
|
|
|
2024-04-01 21:34:52 +03:00
|
|
|
return (
|
2024-12-05 11:56:09 -08:00
|
|
|
<nav
|
|
|
|
|
className={cn("space-y-5", {
|
|
|
|
|
"items-center": collapsed,
|
|
|
|
|
})}
|
|
|
|
|
>
|
|
|
|
|
<NavLinkGroup
|
|
|
|
|
title={"Build"}
|
|
|
|
|
links={[
|
|
|
|
|
{
|
|
|
|
|
label: "Tasks",
|
|
|
|
|
to: "/tasks",
|
|
|
|
|
icon: <RobotIcon className="size-6" />,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: "Workflows",
|
|
|
|
|
to: "/workflows",
|
|
|
|
|
icon: <LightningBoltIcon className="size-6" />,
|
|
|
|
|
},
|
|
|
|
|
]}
|
|
|
|
|
/>
|
|
|
|
|
<NavLinkGroup
|
|
|
|
|
title={"General"}
|
|
|
|
|
links={[
|
|
|
|
|
{
|
|
|
|
|
label: "Settings",
|
|
|
|
|
to: "/settings",
|
|
|
|
|
icon: <GearIcon className="size-6" />,
|
|
|
|
|
},
|
|
|
|
|
]}
|
|
|
|
|
/>
|
2024-04-01 21:34:52 +03:00
|
|
|
</nav>
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export { SideNav };
|