import { Menu } from '@mui/icons-material' import clsx from 'clsx' import { PageHeaderProps } from '@dao-dao/types/components/PageHeader' import { PAGE_HEADER_HEIGHT_CLASSES, UNDO_PAGE_PADDING_HORIZONTAL_CLASSES, } from '@dao-dao/utils' import { IconButton } from '../icon_buttons' import { useAppContextIfAvailable } from './AppContext' import { Breadcrumbs } from './Breadcrumbs' // Title and breadcrumbs are mutually exclusive. Title takes precedence. export const PageHeader = ({ title, breadcrumbs, className, noBorder = false, forceCenter = false, centerNode, rightNode, forceExpandBorderToEdge = false, titleClassName, }: PageHeaderProps) => { const toggle = useAppContextIfAvailable()?.responsiveNavigation.toggle return (
{title}
)} {!!breadcrumbs &&