umami/src/app/(main)/reports/journey/JourneyView.tsx

14 lines
296 B
TypeScript
Raw Normal View History

2024-05-17 08:42:36 +00:00
import { useContext } from 'react';
import { ReportContext } from '../[reportId]/Report';
export default function JourneyView() {
const { report } = useContext(ReportContext);
const { data } = report || {};
if (!data) {
return null;
}
return <div>{JSON.stringify(data)}</div>;
}