mirror of
https://github.com/umami-software/umami.git
synced 2026-02-10 07:37:11 +01:00
Refactor buttons.
This commit is contained in:
parent
000f84df96
commit
30b87bc4c4
16 changed files with 175 additions and 63 deletions
12
components/PageHeader.js
Normal file
12
components/PageHeader.js
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
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>
|
||||
);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue