import { useParams } from 'common' import { ChevronLeft, Menu } from 'lucide-react' import Link from 'next/link' import { useState } from 'react' import { Button, cn } from 'ui' import { MobileSheetNav } from 'ui-patterns' import { HomeIcon } from '../LayoutHeader/HomeIcon' import { useMobileSheet } from './MobileSheetContext' import { OrgSelector } from './OrgSelector' import { ProjectBranchSelector } from './ProjectBranchSelector' import { ConnectButton } from '@/components/interfaces/ConnectButton/ConnectButton' import { LocalDropdown } from '@/components/interfaces/LocalDropdown' import { SidebarContent } from '@/components/interfaces/Sidebar' import { UserDropdown } from '@/components/interfaces/UserDropdown' import { FloatingMobileToolbar } from '@/components/layouts/Navigation/FloatingMobileToolbar/FloatingMobileToolbar' import { useOrganizationsQuery } from '@/data/organizations/organizations-query' import { useSelectedOrganizationQuery } from '@/hooks/misc/useSelectedOrganization' import { IS_PLATFORM } from '@/lib/constants' export const ICON_SIZE = 20 export const ICON_STROKE_WIDTH = 1.5 const MobileNavigationBar = ({ hideMobileMenu, backToDashboardURL, }: { hideMobileMenu?: boolean backToDashboardURL?: string }) => { const [isSheetOpen, setIsSheetOpen] = useState(false) const { ref: projectRef, slug } = useParams() const { data: selectedOrganization } = useSelectedOrganizationQuery() const { isPending: isLoadingOrganizations } = useOrganizationsQuery() const isProjectScope = !!projectRef const showOrgSelection = slug || isLoadingOrganizations || (selectedOrganization && projectRef) const { openMenu } = useMobileSheet() return (
) } export default MobileNavigationBar