mirror of
https://github.com/umami-software/umami.git
synced 2026-02-12 08:37:13 +01:00
17 lines
501 B
TypeScript
17 lines
501 B
TypeScript
import WebsitesTable from '@/app/(main)/settings/websites/WebsitesTable';
|
|
import DataTable from '@/components/common/DataTable';
|
|
import { useWebsites } from '@/components/hooks';
|
|
|
|
export function UserWebsites({ userId }) {
|
|
const queryResult = useWebsites({ userId });
|
|
|
|
return (
|
|
<DataTable queryResult={queryResult}>
|
|
{({ data }) => (
|
|
<WebsitesTable data={data} showActions={true} allowEdit={true} allowView={true} />
|
|
)}
|
|
</DataTable>
|
|
);
|
|
}
|
|
|
|
export default UserWebsites;
|