import Link from 'next/link' import { useRouter } from 'next/router' import { Search, Menu } from 'lucide-react' import { useParams } from 'common' import { IS_PLATFORM } from 'lib/constants' import { useAppStateSnapshot } from 'state/app-state' import { buttonVariants, cn, Sheet, SheetContent } from 'ui' import { CommandMenuTrigger } from 'ui-patterns' import { NavContent } from './NavigationBar' import { useState } from 'react' import MobileSheetNav from 'ui-patterns/MobileSheetNav/MobileSheetNav' export const ICON_SIZE = 20 export const ICON_STROKE_WIDTH = 1.5 const MobileNavigationBar = () => { const router = useRouter() const [isSheetOpen, setIsSheetOpen] = useState(false) const { ref: projectRef } = useParams() const snap = useAppStateSnapshot() const onCloseNavigationIconLink = (event: any) => { snap.setNavigationPanelOpen( false, event.target.id === 'icon-link' || ['svg', 'path'].includes(event.target.localName) ) } return (
) } export default MobileNavigationBar