umami/components/pages/reports/funnel/FunnelTable.js

21 lines
513 B
JavaScript
Raw Normal View History

import { useContext } from 'react';
2023-05-15 06:38:03 +02:00
import DataTable from 'components/metrics/DataTable';
import { useMessages } from 'hooks';
import { ReportContext } from '../Report';
2023-05-15 06:38:03 +02:00
export function FunnelTable() {
const { report } = useContext(ReportContext);
const { formatMessage, labels } = useMessages();
2023-05-15 06:38:03 +02:00
return (
<DataTable
data={report?.data}
title={formatMessage(labels.url)}
metric={formatMessage(labels.visitors)}
showPercentage={false}
/>
);
2023-05-15 06:38:03 +02:00
}
export default FunnelTable;