2025-02-04 21:40:55 +08:00
|
|
|
import { CompassIcon } from "@/components/icons/CompassIcon";
|
2024-12-05 11:56:09 -08:00
|
|
|
import { NavLinkGroup } from "@/components/NavLinkGroup";
|
|
|
|
|
import { useSidebarStore } from "@/store/SidebarStore";
|
2024-04-01 21:34:52 +03:00
|
|
|
import { cn } from "@/util/utils";
|
2025-02-04 21:40:55 +08:00
|
|
|
import {
|
|
|
|
|
CounterClockwiseClockIcon,
|
|
|
|
|
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
|
2025-02-04 21:40:55 +08:00
|
|
|
title="Build"
|
2024-12-05 11:56:09 -08:00
|
|
|
links={[
|
|
|
|
|
{
|
2025-02-04 21:40:55 +08:00
|
|
|
label: "Discover",
|
|
|
|
|
to: "/discover",
|
|
|
|
|
icon: <CompassIcon className="size-6" />,
|
2024-12-05 11:56:09 -08:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: "Workflows",
|
|
|
|
|
to: "/workflows",
|
|
|
|
|
icon: <LightningBoltIcon className="size-6" />,
|
|
|
|
|
},
|
2025-02-04 21:40:55 +08:00
|
|
|
{
|
|
|
|
|
label: "History",
|
|
|
|
|
to: "/history",
|
|
|
|
|
icon: <CounterClockwiseClockIcon className="size-6" />,
|
|
|
|
|
},
|
2024-12-05 11:56:09 -08:00
|
|
|
]}
|
|
|
|
|
/>
|
|
|
|
|
<NavLinkGroup
|
|
|
|
|
title={"General"}
|
|
|
|
|
links={[
|
|
|
|
|
{
|
|
|
|
|
label: "Settings",
|
|
|
|
|
to: "/settings",
|
|
|
|
|
icon: <GearIcon className="size-6" />,
|
|
|
|
|
},
|
|
|
|
|
]}
|
|
|
|
|
/>
|
2024-04-01 21:34:52 +03:00
|
|
|
</nav>
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export { SideNav };
|