import FilterLink from 'components/common/FilterLink'; import FilterButtons from 'components/common/FilterButtons'; import MetricsTable from './MetricsTable'; import useMessages from 'hooks/useMessages'; import usePageQuery from 'hooks/usePageQuery'; import { emptyFilter } from '../../lib/filters'; export default function PagesTable({ websiteId, showFilters, ...props }) { const { router, resolveUrl, query: { view = 'url' }, } = usePageQuery(); const { formatMessage, labels } = useMessages(); const handleSelect = key => { router.push(resolveUrl({ view: key }), null, { shallow: true }); }; const buttons = [ { label: 'URL', key: 'url', }, { label: formatMessage(labels.title), key: 'title', }, ]; const renderLink = ({ x }) => { return ; }; return ( <> {showFilters && } ); }