import { ReactElement } from 'react'; import { ButtonProps } from '../Button'; import { SearchInputProps } from '../Input'; import { SelectProps } from '../Select'; import { NativeElementPropsWithoutKeyAndRef } from '../utils/jsx-types'; import { IconDefinition } from '@mezzanine-ui/icons'; import { DropdownProps } from '../Dropdown'; import { ToggleProps } from '../Toggle'; import { CheckboxProps } from '../Checkbox'; type SegmentedControlProps = { mock: 'SegmentedControlProps'; }; type ContentHeaderChild = ReactElement | ReactElement | ReactElement | ReactElement | ReactElement | ReactElement | ReactElement | ReactElement<{ href: string; }> | null | false | undefined; /** * Props for the ContentHeader component. * * Defines a flexible header with title, description, filter, action buttons, and utility icons. * Commonly used in page headers for primary user actions. */ export type ContentHeaderProps = Omit, 'children'> & { /** * Button configuration for actions.
* Automatically applies proper styling and order.
* When conflicting with other props, props take priority over children.
* Buttons with variants other than primary, secondary, and destructive will not be rendered.
*/ actions?: ButtonProps[]; /** * Children elements:
* - Back button which Component with href prop. * - example 1: ``
* - example 2: ``
* - conflicting prop: `onBackClick`
* - Filter component (SearchInput, Select, or SegmentedControl)
* - Action buttons `
<-- Action buttons * * *