mirror of
https://github.com/kremalicious/umami.git
synced 2024-11-16 02:05:04 +01:00
22 lines
701 B
JavaScript
22 lines
701 B
JavaScript
import React from 'react';
|
|
import MetricsTable from './MetricsTable';
|
|
import { deviceFilter } from 'lib/filters';
|
|
import { FormattedMessage } from 'react-intl';
|
|
import { getDeviceMessage } from 'components/messages';
|
|
|
|
export default function DevicesTable({ websiteId, token, limit, onExpand }) {
|
|
return (
|
|
<MetricsTable
|
|
title={<FormattedMessage id="metrics.devices" defaultMessage="Devices" />}
|
|
type="device"
|
|
metric={<FormattedMessage id="metrics.visitors" defaultMessage="Visitors" />}
|
|
websiteId={websiteId}
|
|
token={token}
|
|
limit={limit}
|
|
dataFilter={deviceFilter}
|
|
renderLabel={({ x }) => getDeviceMessage(x)}
|
|
onExpand={onExpand}
|
|
/>
|
|
);
|
|
}
|