import { useParams } from 'common' import { ConnectButton } from 'components/interfaces/ConnectButton/ConnectButton' import { UserDropdown } from 'components/interfaces/UserDropdown' import { useSelectedOrganizationQuery } from 'hooks/misc/useSelectedOrganization' import { IS_PLATFORM } from 'lib/constants' import { Menu, Search } from 'lucide-react' import { Button, cn } from 'ui' import { CommandMenuTrigger } from 'ui-patterns' import { HomeIcon } from '../LayoutHeader/HomeIcon' import { useMobileSheet } from './MobileSheetContext' import { OrgSelector } from './OrgSelector' import { ProjectBranchSelector } from './ProjectBranchSelector' const MobileNavigationBar = ({ hideMobileMenu }: { hideMobileMenu?: boolean }) => { const { ref: projectRef, slug } = useParams() const { data: selectedOrganization } = useSelectedOrganizationQuery() const isProjectScope = !!projectRef const showOrgSelection = slug || (selectedOrganization && projectRef) const { openMenu } = useMobileSheet() return (