Files
Dorod-Sky/skyvern-frontend/src/routes/root/SideNav.tsx

55 lines
1.2 KiB
TypeScript
Raw Normal View History

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";
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-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"
2024-12-05 11:56:09 -08:00
links={[
{
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" />,
},
{
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 };