"use client";
import { useState } from "react";
import { Listbox, ListboxItem } from "@nextui-org/react";
import { Home, Files, FlaskConical } from "lucide-react";
import { useRouter } from "next/navigation";
import useGetCurrentIds from "@/utils/useGetCurrentIds";
export default function Sidebar() {
const { projectId } = useGetCurrentIds();
const router = useRouter();
const [currentKey, setCurrentTab] = useState("home");
const baseClass = "p-3 rounded-none";
const selectedClass = `${baseClass} bg-neutral-200 dark:bg-neutral-700`;
const handleTabClick = (key: string) => {
setCurrentTab(key);
if (key === "home") {
router.push(`/projects/${projectId}/home`);
} else if (key === "cases") {
router.push(`/projects/${projectId}/folders`);
} else if (key === "runs") {
router.push(`/projects/${projectId}/runs`);
}
};
const tabItems = [
{
key: "home",
text: "Home",
startContent: