mirror of
https://github.com/umami-software/umami.git
synced 2026-02-13 00:55:37 +01:00
15 lines
342 B
TypeScript
15 lines
342 B
TypeScript
import styles from './ReportBody.module.css';
|
|
import { useContext } from 'react';
|
|
import { ReportContext } from './Report';
|
|
|
|
export function ReportBody({ children }) {
|
|
const { report } = useContext(ReportContext);
|
|
|
|
if (!report) {
|
|
return null;
|
|
}
|
|
|
|
return <div className={styles.body}>{children}</div>;
|
|
}
|
|
|
|
export default ReportBody;
|