2023-01-18 23:05:39 +00:00
|
|
|
import React from 'react';
|
2020-09-22 04:34:55 +00:00
|
|
|
import classNames from 'classnames';
|
2023-04-10 03:22:28 +00:00
|
|
|
import { useBreakpoint } from 'react-basics';
|
2020-08-07 07:24:01 +00:00
|
|
|
import styles from './PageHeader.module.css';
|
|
|
|
|
|
2023-04-10 03:22:28 +00:00
|
|
|
export default function PageHeader({ title, children }) {
|
|
|
|
|
const breakPoint = useBreakpoint();
|
|
|
|
|
|
2022-12-27 00:57:59 +00:00
|
|
|
return (
|
2023-04-10 03:22:28 +00:00
|
|
|
<div className={classNames(styles.header, { [styles[breakPoint]]: true })}>
|
2023-01-31 05:44:07 +00:00
|
|
|
<div className={styles.title}>{title}</div>
|
2023-04-10 03:22:28 +00:00
|
|
|
<div className={styles.actions}>{children}</div>
|
2022-12-27 00:57:59 +00:00
|
|
|
</div>
|
|
|
|
|
);
|
2020-08-07 07:24:01 +00:00
|
|
|
}
|