umami/components/pages/reports/EventDataReport.js

34 lines
1.1 KiB
JavaScript
Raw Normal View History

2023-05-18 08:20:06 +02:00
import { useState } from 'react';
import { Form, FormRow, FormInput, TextField } from 'react-basics';
import AppLayout from 'components/layout/AppLayout';
import Report from './Report';
import ReportHeader from './ReportHeader';
import useMessages from 'hooks/useMessages';
import Nodes from 'assets/nodes.svg';
import styles from './reports.module.css';
export default function EventDataReport({ websiteId, data }) {
const [values, setValues] = useState({ query: '' });
const { formatMessage, labels } = useMessages();
return (
<AppLayout>
<Report>
<ReportHeader title={formatMessage(labels.eventData)} icon={<Nodes />} />
<div className={styles.container}>
<div className={styles.menu}>
<Form>
<FormRow label="Properties">
<FormInput name="query">
<TextField value={values.query} />
</FormInput>
</FormRow>
</Form>
</div>
<div className={styles.content}></div>
</div>
</Report>
</AppLayout>
);
}