mirror of
https://github.com/kremalicious/umami.git
synced 2024-11-15 17:55:08 +01:00
28 lines
579 B
JavaScript
28 lines
579 B
JavaScript
import React from 'react';
|
|
import MetricsTable from './MetricsTable';
|
|
import { countryFilter, percentFilter } from 'lib/filters';
|
|
|
|
export default function CountriesTable({
|
|
websiteId,
|
|
startDate,
|
|
endDate,
|
|
limit,
|
|
onDataLoad,
|
|
onExpand,
|
|
}) {
|
|
return (
|
|
<MetricsTable
|
|
title="Countries"
|
|
type="country"
|
|
metric="Visitors"
|
|
websiteId={websiteId}
|
|
startDate={startDate}
|
|
endDate={endDate}
|
|
limit={limit}
|
|
dataFilter={countryFilter}
|
|
onDataLoad={data => onDataLoad(percentFilter(data))}
|
|
onExpand={onExpand}
|
|
/>
|
|
);
|
|
}
|