import { ServiceViewSettings } from "@/types/serviceAdmin";
import { Metadata } from "next";
import { getSeoSettings } from "@/lib/common/fetch-seo-settings";
import NotificationsPageRender from "@/components/notifications/notifications-page-render";
import DefaultAuthLayout from "@/components/layout/default-auth-layout";
import { SEO } from "@/types/common";
import { PAGE_CONFIG } from "@/lib/appConstant";




export default async function NotificationsPage(props: any) {
  
  return (
    <DefaultAuthLayout footer={true} header={true} bodyMegreLayout={true}>
      <NotificationsPageRender {...props} />
    </DefaultAuthLayout>
  )
}

export const generateMetadata = async (): Promise<Metadata> => {
  const settings: SEO = await getSeoSettings(PAGE_CONFIG.notifications);
  return {
    title: settings.title,
    description: settings.metaDescription
  };
};
