MCPcopy Create free account
hub / github.com/WebDevSimplified/course-platform / PageHeader

Function PageHeader

src/components/PageHeader.tsx:4–21  ·  view source on GitHub ↗
({
  title,
  children,
  className,
}: {
  title: string
  children?: ReactNode
  className?: string
})

Source from the content-addressed store, hash-verified

2import { ReactNode } from "react"
3
4export function PageHeader({
5 title,
6 children,
7 className,
8}: {
9 title: string
10 children?: ReactNode
11 className?: string
12}) {
13 return (
14 <div
15 className={cn("mb-8 flex gap-4 items-center justify-between", className)}
16 >
17 <h1 className="text-2xl font-semibold">{title}</h1>
18 {children && <div>{children}</div>}
19 </div>
20 )
21}

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected