Spaces:
Configuration error
Configuration error
Download src/app/(main)/reports/event-data/EventDataTable.tsx from SreejithSHR/umami: direct link, hf CLI and curl.
- Browser
- Download file 647 Bytes
-
https://huggingface.co/spaces/SreejithSHR/umami/resolve/main/src/app/(main)/reports/event-data/EventDataTable.tsx
- Command line
-
hf download 'hf://spaces/SreejithSHR/umami/src/app/(main)/reports/event-data/EventDataTable.tsx'
-
curl -L -o EventDataTable.tsx 'https://huggingface.co/spaces/SreejithSHR/umami/resolve/main/src/app/(main)/reports/event-data/EventDataTable.tsx'
647 Bytes
| import { useContext } from 'react'; | |
| import { GridTable, GridColumn } from 'react-basics'; | |
| import { useMessages } from 'components/hooks'; | |
| import { ReportContext } from '../[reportId]/Report'; | |
| export function EventDataTable() { | |
| const { report } = useContext(ReportContext); | |
| const { formatMessage, labels } = useMessages(); | |
| return ( | |
| <GridTable data={report?.data || []}> | |
| <GridColumn name="field" label={formatMessage(labels.field)} /> | |
| <GridColumn name="value" label={formatMessage(labels.value)} /> | |
| <GridColumn name="total" label={formatMessage(labels.total)} /> | |
| </GridTable> | |
| ); | |
| } | |
| export default EventDataTable; | |