mirror of
https://github.com/kremalicious/umami.git
synced 2024-11-15 01:35:17 +01:00
13 lines
381 B
JavaScript
13 lines
381 B
JavaScript
import React, { Children } from 'react';
|
|
import styles from './PageHeader.module.css';
|
|
|
|
export default function PageHeader({ children }) {
|
|
const [firstChild, ...otherChildren] = Children.toArray(children);
|
|
return (
|
|
<div className={styles.header}>
|
|
<div className={styles.title}> {firstChild}</div>
|
|
{otherChildren && <div>{otherChildren}</div>}
|
|
</div>
|
|
);
|
|
}
|