FPSMS-frontend
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

page.tsx 582 B

1234567891011121314151617181920
  1. import { I18nProvider } from "@/i18n";
  2. import ClientMonitorPage from "@/components/ClientMonitor/ClientMonitorPage";
  3. import { isMonitoringEnabled } from "@/config/monitoring";
  4. import { Metadata } from "next";
  5. import { redirect } from "next/navigation";
  6. export const metadata: Metadata = {
  7. title: "裝置連線監控",
  8. };
  9. export default function ClientMonitorRoutePage() {
  10. if (!isMonitoringEnabled) {
  11. redirect("/settings/user");
  12. }
  13. return (
  14. <I18nProvider namespaces={["clientMonitor", "navigation", "common"]}>
  15. <ClientMonitorPage />
  16. </I18nProvider>
  17. );
  18. }