import { HStack, Flex, Box } from "@chakra-ui/react"; import { NavLink, Outlet, useLocation } from "react-router-dom"; import { SearchBar } from "../../components/dashboard/SearchBar.jsx"; import { SettingsButton } from "../../components/dashboard/SettingsButton.jsx"; export default function Home() { const location = useLocation(); const isPersonalDashboard = location.pathname === "/home" || location.pathname === "/home/"; // 1. CSS making this look like how we want it, TODO turn to theme? const tabStyles = { fontSize: "lg", fontWeight: "bold", color: "fg.muted", px: 2, // Horizontal padding // py: 2, // Vertical padding borderBottom: "1px solid transparent", transition: "all 0.2s", _hover: { color: "fg" }, "&.active": { // Target the active class applied by React Router NavLink color: "fg", borderColor: "fg", } }; return ( {/* 2. 🛠️ SUB HEADER: Matches your original padding and background */} {/* TABS CONTAINER - Replicates the Tabs.List line container */} My Dashboard Daily Activity Gas Remote Sensing Seismic {/* EDIT MODE BUTTONS & CONTROLS */} {isPersonalDashboard ? ( <> {/* This will eventually trigger your Zustand store's edit mode! */} ) : ( )} {/* 3. 🛠️ CANVAS AREA */} ); }