2024-10-27 21:11:45 +00:00
|
|
|
/* Copyright (C) 2024 Manuel Bustillo*/
|
|
|
|
|
2024-08-11 16:14:12 +02:00
|
|
|
import AffinityGroupsTree from '@/app/ui/guests/affinity-groups-tree';
|
2024-08-11 13:12:03 +02:00
|
|
|
import GuestsTable from '@/app/ui/guests/table';
|
2024-08-18 18:41:44 +02:00
|
|
|
import React, { Suspense } from 'react';
|
|
|
|
import SkeletonTable from '@/app/ui/guests/skeleton-row';
|
2024-11-13 08:16:10 +01:00
|
|
|
import { TabView, TabPanel } from 'primereact/tabview';
|
|
|
|
import GroupsTable from '@/app/ui/groups/table';
|
2024-08-11 13:12:03 +02:00
|
|
|
|
|
|
|
export default function Page() {
|
2024-08-11 12:34:16 +02:00
|
|
|
return (
|
|
|
|
<div className="w-full">
|
2024-08-11 16:14:12 +02:00
|
|
|
<AffinityGroupsTree />
|
2024-08-18 18:41:44 +02:00
|
|
|
|
2024-11-13 08:16:10 +01:00
|
|
|
<TabView>
|
|
|
|
<TabPanel header="Guests" leftIcon="pi pi-users mx-2">
|
|
|
|
<div className="flex w-full items-center justify-between">
|
|
|
|
<Suspense fallback={<SkeletonTable />}>
|
|
|
|
<GuestsTable />
|
|
|
|
</Suspense>
|
|
|
|
</div>
|
|
|
|
</ TabPanel>
|
|
|
|
<TabPanel header="Groups" leftIcon="pi pi-sitemap mx-2">
|
|
|
|
<div className="flex w-full items-center justify-between">
|
|
|
|
<Suspense fallback={<SkeletonTable />}>
|
|
|
|
<GroupsTable />
|
|
|
|
</Suspense>
|
|
|
|
</div>
|
|
|
|
</ TabPanel>
|
|
|
|
</ TabView>
|
2024-08-11 12:34:16 +02:00
|
|
|
</div>
|
2024-11-13 08:16:10 +01:00
|
|
|
|
2024-08-11 12:34:16 +02:00
|
|
|
);
|
|
|
|
}
|