import MonitorTable from "../../Components/Monitor/MonitorTable";
import DashboardNavigation from "../../Utils/Navigation";
import PageComponentProps from "../PageComponentProps";
import URL from "Common/Types/API/URL";
import Banner from "CommonUI/src/Components/Banner/Banner";
import React, { Fragment, FunctionComponent, ReactElement } from "react";

const MonitorPage: FunctionComponent<PageComponentProps> = (): ReactElement => {
  return (
    <Fragment>
      <Banner
        openInNewTab={true}
        title="Monitoring Demo"
        description="Watch this video which will help monitor any resource you have with OneUptime"
        link={URL.fromString("https://youtu.be/_fQ_F4EisBQ")}
      />
      <MonitorTable
        query={{
          projectId: DashboardNavigation.getProjectId()?.toString(),
        }}
      />
    </Fragment>
  );
};

export default MonitorPage;
