( pageTitle: string, section?: string, baseTitle = BASE_TITLE )
| 8 | * Creates a hierarchical title with the format: "Page Title | Section | OpenPanel.dev" |
| 9 | */ |
| 10 | export function createTitle( |
| 11 | pageTitle: string, |
| 12 | section?: string, |
| 13 | baseTitle = BASE_TITLE |
| 14 | ): string { |
| 15 | const parts = [pageTitle]; |
| 16 | if (section) { |
| 17 | parts.push(section); |
| 18 | } |
| 19 | parts.push(baseTitle); |
| 20 | return parts.join(' | '); |
| 21 | } |
| 22 | |
| 23 | /** |
| 24 | * Creates a title for organization-level pages |
no test coverage detected