subman-nextjs/src/app/ui/pageHeader.tsx

10 lines
300 B
TypeScript
Raw Normal View History

2024-06-20 10:29:56 +00:00
import { ComponentProps } from "react"
export function PageHeader(props: ComponentProps<"h1">) {
2024-06-20 18:02:25 +00:00
return <h1 className="text-3xl font-bold mt-3">{props.children}</h1>
2024-06-20 10:29:56 +00:00
}
export function PageSubHeader(props: ComponentProps<"h2">) {
2024-06-20 18:02:25 +00:00
return <h2 className="text-xl font-bold">{props.children}</h2>
2024-06-20 10:29:56 +00:00
}