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
