You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
476 B
19 lines
476 B
import React, { FC } from 'react'
|
|
|
|
interface Props {
|
|
title: string
|
|
subtitle?: string
|
|
}
|
|
|
|
const PageHeader: FC<Props> = ({ title, subtitle }) => (
|
|
<section className="hero is-dark is-bold">
|
|
<div className="hero-body">
|
|
<div className="container">
|
|
<h1 className="title">{title}</h1>
|
|
{subtitle && <h2 className="subtitle">{subtitle}</h2>}
|
|
</div>
|
|
</div>
|
|
</section>
|
|
)
|
|
|
|
export default PageHeader
|