"use client";
import { HumasLayout } from "@/components/layout/humas-layout";
import ListEnewsPolri from "@/components/table/tabel-emajalah-polri";
import React, { Suspense, useEffect, useState } from "react";

export default function ListEnewsPage() {
  const [hasMounted, setHasMounted] = useState(false);

  useEffect(() => {
    setHasMounted(true);
  }, []);

  // Render
  if (!hasMounted) return null;
  return (
    <HumasLayout>
      <Suspense>
        <ListEnewsPolri />
      </Suspense>
    </HumasLayout>
  );
}
