/** * Page Header Component * Reusable header for all pages with title, description, and actions * Supports role-based action visibility */ import React from "react"; import { __ } from "../../lib/i18n"; import { ConditionalRender } from "../ui/conditional-render"; interface PageHeaderProps { title?: string; // Optional - title is now shown in top bar description?: string; actions?: React.ReactNode; actionCapability?: string; actionRequirePro?: boolean; } /** * Page Header Component * * @example * Add New} * /> */ export const PageHeader: React.FC = ({ description, actions, actionCapability, actionRequirePro = false, }) => { return (
{description && (

{description}

)}
{actions && (
{actions}
)}
); }; export default PageHeader;