umami/components/metrics/DevicesTable.js
2020-09-05 17:27:01 -07:00

19 lines
567 B
JavaScript

import React from 'react';
import MetricsTable from './MetricsTable';
import { deviceFilter } from 'lib/filters';
import { FormattedMessage } from 'react-intl';
export default function DevicesTable({ websiteId, limit, onExpand }) {
return (
<MetricsTable
title={<FormattedMessage id="metrics.devices" defaultMessage="Devices" />}
type="device"
metric={<FormattedMessage id="metrics.visitors" defaultMessage="Visitors" />}
websiteId={websiteId}
limit={limit}
dataFilter={deviceFilter}
onExpand={onExpand}
/>
);
}