import type { Metadata } from "next";
import { CategoryListingPage } from "@/components/category-listing-page";
import { WEDIGTECH_ICON_URL } from "@/lib/constants";

export const revalidate = 60;

export const metadata: Metadata = {
  title: "Resources | wedigtech",
  description:
    "Impact Stories and Insights — outcomes our partnerships have created, and the thinking to grow with confidence.",
  openGraph: {
    title: "Resources | wedigtech",
    description:
      "Impact Stories and Insights — outcomes our partnerships have created, and the thinking to grow with confidence.",
    images: [{ url: WEDIGTECH_ICON_URL }],
  },
  twitter: {
    title: "Resources | wedigtech",
    description:
      "Impact Stories and Insights — outcomes our partnerships have created, and the thinking to grow with confidence.",
    images: ["https://wedigtech-strapi-media.s3.ap-south-1.amazonaws.com/files/icon.png"],
  },
};

// /resources is the "All" view of the same listing used by /resources/[category]
// (category omitted here) — not a separate hub page, so the URL, the filter
// pills, and the browser back/forward button all stay in sync with each other.
export default async function ResourcesPage() {
  return <CategoryListingPage />;
}
