mirror of
https://github.com/umami-software/umami.git
synced 2025-12-06 01:18:00 +01:00
15 lines
478 B
TypeScript
15 lines
478 B
TypeScript
import { WebsitesTable } from '@/app/(main)/websites/WebsitesTable';
|
|
import { DataGrid } from '@/components/common/DataGrid';
|
|
import { useUserWebsitesQuery } from '@/components/hooks';
|
|
|
|
export function UserWebsites({ userId }) {
|
|
const queryResult = useUserWebsitesQuery({ userId });
|
|
|
|
return (
|
|
<DataGrid query={queryResult}>
|
|
{({ data }) => (
|
|
<WebsitesTable data={data} showActions={true} allowEdit={true} allowView={true} />
|
|
)}
|
|
</DataGrid>
|
|
);
|
|
}
|