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