"use client"; import { ReactNode } from "react"; import { Button } from "@/components/ui/button"; import { Menu } from "lucide-react"; import { useSidebarContext } from "@/components/layout/sidebar-context"; import { useIsMobile } from "@/hooks/use-mobile"; import { cn } from "@/lib/utils"; interface PageHeaderProps { title: string; description?: string | ReactNode; actions?: ReactNode; rightContent?: ReactNode; } export function PageHeader({ title, description, actions, rightContent, }: PageHeaderProps) { const { setOpen } = useSidebarContext(); const isMobile = useIsMobile(); return (
{isMobile && ( )}

{title}

{description && (
{description}
)}
{(rightContent || actions) && (
{rightContent} {actions && (
{actions}
)}
)}
); }