13 lines
342 B
TypeScript
13 lines
342 B
TypeScript
import { h, type FunctionComponent } from 'preact'
|
|
import cn from 'classnames'
|
|
|
|
import s from './page_header.module.scss'
|
|
|
|
const PageHeader: FunctionComponent<{ className?: string }> = ({ children, className }) => (
|
|
<div className={cn(s.base, className)}>
|
|
<h1 className={s.heading}>{children}</h1>
|
|
</div>
|
|
)
|
|
|
|
export default PageHeader
|