import { useT } from "@agent-native/core/client/i18n"; import { IconMenu2 } from "@tabler/icons-react"; import type { ReactNode } from "react"; import { Button } from "@/components/ui/button"; import { cn } from "@/lib/utils"; interface MobileAppBarProps { onOpenNavigation: () => void; title?: ReactNode; actions?: ReactNode; className?: string; } /** * The one 48px bar above a route. The menu button only shows below md, where * the sidebar lives in a sheet. */ export function MobileAppBar({ onOpenNavigation, title, actions, className, }: MobileAppBarProps) { const t = useT(); return (
{title}
{actions ? (
{actions}
) : null}
); }