MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / createTitle

Function createTitle

apps/start/src/utils/title.ts:10–21  ·  view source on GitHub ↗
(
  pageTitle: string,
  section?: string,
  baseTitle = BASE_TITLE
)

Source from the content-addressed store, hash-verified

8 * Creates a hierarchical title with the format: "Page Title | Section | OpenPanel.dev"
9 */
10export 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

Callers 5

_login.login.tsxFile · 0.90
_login.verify.tsxFile · 0.90
index.tsxFile · 0.90
createOrganizationTitleFunction · 0.85

Calls 2

joinMethod · 0.80
pushMethod · 0.45

Tested by

no test coverage detected