umami/components/layout/PageHeader.js

13 lines
356 B
JavaScript
Raw Normal View History

import React from 'react';
2020-09-22 06:34:55 +02:00
import classNames from 'classnames';
2020-08-07 09:24:01 +02:00
import styles from './PageHeader.module.css';
2023-01-31 06:44:07 +01:00
export default function PageHeader({ title, children, className, style }) {
return (
<div className={classNames(styles.header, className)} style={style}>
2023-01-31 06:44:07 +01:00
<div className={styles.title}>{title}</div>
{children}
</div>
);
2020-08-07 09:24:01 +02:00
}