import { ChangeDetectionStrategy, Component, input } from '@angular/core';
/**
* Page title + subtitle for product screens.
*
* Sit this **below** app-shell breadcrumbs (the shell content header does
* that automatically via `headerTitle` / `headerSubtitle`). Pages outside
* the shell can use the component directly.
*
* Optional `[actions]` slot for a toolbar on the right (filters, primary CTA).
*
* @example
* ```html
*
*
*
*
*
* ```
*/
@Component({
selector: 'africanies-page-header',
standalone: true,
changeDetection: ChangeDetectionStrategy.OnPush,
host: {
class: 'block',
},
template: `
@if (title() || subtitle()) {
@if (title()) {
{{ title() }}
}
@if (subtitle()) {
{{ subtitle() }}
}
}
`,
})
/**
* Page title + subtitle for product screens.
*/
export class PageHeaderComponent {
/** Page heading. Omit when the shell already rendered a title. */
readonly title = input('');
/** One-line explanation of what this screen is for. */
readonly subtitle = input('');
}