import { useState } from "react"; import { Dashboard } from "./components/Dashboard"; import { Inventory } from "./components/Inventory"; import { ProtocolChecker } from "./components/ProtocolChecker"; import { useSession, signIn, signOut } from "./lib/auth-client"; import { Button } from "./components/ui/button"; import { Card, CardContent } from "./components/ui/card"; import { LayoutDashboard, Package, FileCheck, LogOut, } from "lucide-react"; const logo = "/logo.png"; type Tab = "dashboard" | "inventory" | "protocol"; export default function App() { const { data: session, isPending } = useSession(); const [activeTab, setActiveTab] = useState("dashboard"); const navItems = [ { id: "dashboard" as Tab, label: "Dashboard", icon: LayoutDashboard }, { id: "inventory" as Tab, label: "Inventory", icon: Package }, { id: "protocol" as Tab, label: "Protocol Checker", icon: FileCheck }, ]; if (isPending) { return (
LabWise
); } if (!session) { return (
LabWise

Sign in to access your lab inventory and protocols.

); } return (
{/* Sidebar */} {/* Main Content */}
{activeTab === "dashboard" && } {activeTab === "inventory" && } {activeTab === "protocol" && }
); }