({
title,
children,
className,
}: PageHeaderProps)
| 14 | } |
| 15 | |
| 16 | export const PageHeader = ({ |
| 17 | title, |
| 18 | children, |
| 19 | className, |
| 20 | }: PageHeaderProps): ReactElement => ( |
| 21 | <header className={classNames(pageHeaderClassName, className)}> |
| 22 | {title !== undefined && |
| 23 | (typeof title === 'string' ? ( |
| 24 | <strong className="min-w-0 flex-1 truncate typo-callout"> |
| 25 | {title} |
| 26 | </strong> |
| 27 | ) : ( |
| 28 | <div className="flex min-w-0 flex-1 items-center self-stretch"> |
| 29 | {title} |
| 30 | </div> |
| 31 | ))} |
| 32 | {children !== undefined && ( |
| 33 | <div className="-mr-1 ml-auto flex shrink-0 items-center gap-1"> |
| 34 | {children} |
| 35 | </div> |
| 36 | )} |
| 37 | </header> |
| 38 | ); |
nothing calls this directly
no outgoing calls
no test coverage detected