import { getCurrentPath } from '~/utils/url' import { useNavigate } from 'react-router-dom' import { getActionUrl, getName } from '~/utils/actions' import { useOrgParams } from '~/utils/organization' import { ActionGroupLookupResult, ActionMode } from '~/utils/types' export default function MobilePageSubnav({ title, mode, secondaryNav, }: { title?: string | null mode: ActionMode secondaryNav?: ActionGroupLookupResult | null }) { const { orgEnvSlug } = useOrgParams() const navigate = useNavigate() return (