1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-12-02 05:57:29 +01:00
market/src/components/molecules/PageHeader.tsx

26 lines
552 B
TypeScript

import React, { ReactElement } from 'react'
import classNames from 'classnames/bind'
import styles from './PageHeader.module.css'
const cx = classNames.bind(styles)
export default function PageHeader({
title,
description
}: {
title: string
description?: string
center?: boolean
}): ReactElement {
const styleClasses = cx({
header: true
})
return (
<header className={styleClasses}>
<h1 className={styles.title}>{title}</h1>
{description && <p className={styles.description}>{description}</p>}
</header>
)
}