diff --git a/frontend/src/components/layout/Sidebar.tsx b/frontend/src/components/layout/Sidebar.tsx index ef86c84..f383f15 100644 --- a/frontend/src/components/layout/Sidebar.tsx +++ b/frontend/src/components/layout/Sidebar.tsx @@ -3,6 +3,38 @@ import { useNavigate, useLocation } from 'react-router-dom' import { useSheetStore } from '../../stores/useSheetStore' import { useAuthStore } from '../../stores/useAuthStore' +// Inline SVGs — no extra deps +const IconFile = () => ( + +) +const IconGrid = () => ( + +) +const IconSettings = () => ( + +) +const IconUpload = () => ( + +) +const IconPlus = () => ( + +) + export default function Sidebar() { const navigate = useNavigate() const location = useLocation() @@ -12,6 +44,8 @@ export default function Sidebar() { const [renameValue, setRenameValue] = useState('') const [contextMenu, setContextMenu] = useState<{ id: string; x: number; y: number } | null>(null) + const isActive = (path: string) => location.pathname === path || location.pathname.startsWith(path + '/') + const handleNewSheet = async () => { const name = `Sheet ${new Date().toLocaleDateString()}` const id = await createSheet(name) @@ -41,108 +75,160 @@ export default function Sidebar() { return (
Manage your Activation Calendar sheets or extract deliverables from a brief.