stargaze-studio/components/PageHeader.tsx

16 lines
310 B
TypeScript
Raw Normal View History

2022-07-13 13:56:36 +00:00
import type { ReactNode } from 'react'
export interface PageHeaderProps {
title: string
children?: ReactNode
}
export const PageHeader = ({ title, children }: PageHeaderProps) => {
return (
<>
<h1 className="font-heading text-4xl font-bold">{title}</h1>
<p>{children}</p>
</>
)
}