MCPcopy Create free account
hub / github.com/dailydotdev/apps / PageHeader

Function PageHeader

packages/shared/src/components/layout/PageHeader.tsx:16–38  ·  view source on GitHub ↗
({
  title,
  children,
  className,
}: PageHeaderProps)

Source from the content-addressed store, hash-verified

14}
15
16export 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);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected