mirror of
https://github.com/kremalicious/umami.git
synced 2025-02-14 21:10:34 +01:00
16 lines
342 B
TypeScript
16 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;
|