mirror of
https://github.com/Portabase/portabase.git
synced 2026-07-14 11:16:13 +02:00
31 lines
923 B
TypeScript
31 lines
923 B
TypeScript
import {PageParams} from "@/types/next";
|
|
import {Page, PageContent, PageHeader, PageTitle} from "@/features/layout/page";
|
|
import {Metadata} from "next";
|
|
import {NotificationLogsList} from "@/components/wrappers/dashboard/admin/notifications/logs/notification-logs-list";
|
|
import {notFound} from "next/navigation";
|
|
import {getNotificationHistory} from "@/db/services/notification-log";
|
|
|
|
export const metadata: Metadata = {
|
|
title: "Activity logs",
|
|
};
|
|
|
|
export default async function RoutePage(props: PageParams<{}>) {
|
|
|
|
const notificationLogs = await getNotificationHistory()
|
|
|
|
if (!notificationLogs) {
|
|
notFound();
|
|
}
|
|
|
|
return (
|
|
<Page>
|
|
<PageHeader>
|
|
<PageTitle>Activity logs</PageTitle>
|
|
</PageHeader>
|
|
<PageContent>
|
|
<NotificationLogsList notificationLogs={notificationLogs} />
|
|
</PageContent>
|
|
</Page>
|
|
);
|
|
}
|