import { useLocation, useParams } from "react-router" import { PageHeader } from "@/components/page-header" import { PrimaryPageTemplate } from "@/components/templates/primary-page-template" import { useProduct } from "@/contexts/product-context" import { prismHubMetaForSegment } from "@/lib/prism-hub-meta" import { oneSitesHubMetaForSegment } from "@/lib/one-sites-hub-meta" /** * Generic hub placeholder for tenant product routes under * `/:productRootSegment//*`. Renders DS chrome + an empty body until * the hub ships a real `ListPageTemplate` surface. */ export default function ProductShellPlaceholder() { const { pathname } = useLocation() const { productRootSegment = "" } = useParams() const { product } = useProduct() const pathSegments = pathname.split("/").filter(Boolean) const hubSegment = pathSegments[1] ?? productRootSegment const meta = product === "exxat-one-sites" ? oneSitesHubMetaForSegment(hubSegment) : prismHubMetaForSegment(hubSegment) return (

{meta.title} is not available yet.

Ask your Exxat administrator when this hub opens for your program.

) }