import { useNavigate } from "react-router-dom"; import { useMobileViewport } from "../hooks/use-mobile-viewport"; import { Icon } from "./icon"; interface MobilePageHeaderProps { title: string; showBack?: boolean; actions?: React.ReactNode; } export function MobilePageHeader({ title, showBack = true, actions }: MobilePageHeaderProps) { const navigate = useNavigate(); const isMobile = useMobileViewport(); if (!isMobile) return null; return (
{showBack && ( )}

{title}

{actions &&
{actions}
}
); }