
import ViewOnlineRender from "@/components/view-online/view-online-render";
import { PAGE_CONFIG } from "@/lib/appConstant";
import { getSeoSettings } from "@/lib/common/fetch-seo-settings";
import { SEO } from "@/types/common";
import { ServiceViewSettings } from "@/types/serviceAdmin";
import { Metadata } from "next";

export default function ViewOnlinePage(props: any) {

  return (
    <>
      {/* View Online Page */}
      <ViewOnlineRender/>
    </>
  );
}

export const generateMetadata = async (): Promise<Metadata> => {
  const settings: SEO = await getSeoSettings(PAGE_CONFIG.viewOnline);
  return {
    title: settings.title,
    description: settings.metaDescription
  };
};