mirror of
https://github.com/umami-software/umami.git
synced 2025-12-06 01:18:00 +01:00
14 lines
453 B
TypeScript
14 lines
453 B
TypeScript
import { useLinksQuery, useNavigation } from '@/components/hooks';
|
|
import { LinksTable } from './LinksTable';
|
|
import { DataGrid } from '@/components/common/DataGrid';
|
|
|
|
export function LinksDataTable() {
|
|
const { teamId } = useNavigation();
|
|
const query = useLinksQuery({ teamId });
|
|
|
|
return (
|
|
<DataGrid query={query} allowSearch={true} autoFocus={false} allowPaging={true}>
|
|
{({ data }) => <LinksTable data={data} />}
|
|
</DataGrid>
|
|
);
|
|
}
|