mirror of
https://github.com/kremalicious/umami.git
synced 2024-11-15 09:45:04 +01:00
25 lines
603 B
JavaScript
25 lines
603 B
JavaScript
import FilterLink from 'components/common/FilterLink';
|
|
import MetricsTable from './MetricsTable';
|
|
import useMessages from 'hooks/useMessages';
|
|
|
|
export default function PagesTable({ websiteId, ...props }) {
|
|
const { formatMessage, labels } = useMessages();
|
|
|
|
const renderLink = ({ x: url }) => {
|
|
return <FilterLink id="url" value={url} />;
|
|
};
|
|
|
|
return (
|
|
<>
|
|
<MetricsTable
|
|
title={formatMessage(labels.pages)}
|
|
type="url"
|
|
metric={formatMessage(labels.views)}
|
|
websiteId={websiteId}
|
|
renderLabel={renderLink}
|
|
{...props}
|
|
/>
|
|
</>
|
|
);
|
|
}
|