umami/components/layout/PageHeader.js

15 lines
393 B
JavaScript
Raw Normal View History

2023-05-20 18:02:08 +02:00
import classNames from 'classnames';
import React from 'react';
2020-08-07 09:24:01 +02:00
import styles from './PageHeader.module.css';
2023-05-20 18:02:08 +02:00
export function PageHeader({ title, children, className }) {
return (
2023-05-20 18:02:08 +02:00
<div className={classNames(styles.header, className)}>
2023-01-31 06:44:07 +01:00
<div className={styles.title}>{title}</div>
2023-04-10 05:22:28 +02:00
<div className={styles.actions}>{children}</div>
</div>
);
2020-08-07 09:24:01 +02:00
}
2023-04-21 17:00:42 +02:00
export default PageHeader;