import { useLocation, useNavigate } from "react-router-dom"; import { Icon } from "../../icon"; interface SpacesBottomSheetProps { isOpen: boolean; onClose: () => void; } const SPACES_ITEMS = [ { to: "/projects", label: "Projects" }, { to: "/workspaces", label: "Workspaces" }, ]; export const SpacesBottomSheet: React.FC = ({ isOpen, onClose, }) => { const location = useLocation(); const navigate = useNavigate(); if (!isOpen) return null; const handleSelect = (to: string) => { onClose(); navigate(to); }; return (
e.stopPropagation()} role="dialog" aria-label="Spaces menu" >

Spaces

{SPACES_ITEMS.map((item) => ( ))}
); };