import type { Metadata } from "next" import { getTranslations, getMessages, setRequestLocale } from "next-intl/server" import { Link } from "@/i18n/navigation" import { ExternalLink } from "lucide-react" import { DocHeader } from "@/components/ui/doc-header" import { Callout } from "@/components/ui/callout" import CopyableCode from "@/components/CopyableCode" export async function generateMetadata({ params, }: { params: Promise<{ locale: string }> }): Promise { const { locale } = await params const t = await getTranslations({ locale, namespace: "docs.postInstall.monitoring.meta" }) return { title: t("title"), description: t("description") } } type RelatedItem = { label: string; href: string; tail: string } export default async function PostInstallMonitoringPage({ params, }: { params: Promise<{ locale: string }> }) { const { locale } = await params setRequestLocale(locale) const t = await getTranslations({ locale, namespace: "docs.postInstall.monitoring" }) const messages = (await getMessages({ locale })) as unknown as { docs: { postInstall: { monitoring: { ovh: { decisionsItems: string[] } related: { items: RelatedItem[] } } } } } const decisionsItems = messages.docs.postInstall.monitoring.ovh.decisionsItems const relatedItems = messages.docs.postInstall.monitoring.related.items const code = (chunks: React.ReactNode) => {chunks} const strong = (chunks: React.ReactNode) => {chunks} const em = (chunks: React.ReactNode) => {chunks} const ovhAnchor = (chunks: React.ReactNode) => ( {chunks} ) const rtmAnchor = (chunks: React.ReactNode) => ( {chunks} ) return (
{t.rich("intro.body", { strong })}

{t("ovh.heading")}

{t.rich("ovh.intro", { a: ovhAnchor })}

{t("ovh.decisionsTitle")}

    {decisionsItems.map((_, idx) => (
  1. {t.rich(`ovh.decisionsItems.${idx}`, { code, em })}
  2. ))}
{t.rich("ovh.remoteBody", { code })} {t.rich("ovh.noOpBody", { em })}

{t("ovh.runsTitle")}

{t("ovh.verifyTitle")}

{t.rich("ovh.verifyBody", { a: rtmAnchor })}

{t("ovh.troubleTitle")}

{t.rich("ovh.spuriousBody", { em, code })} {t.rich("ovh.revertBody", { code })}

{t("related.heading")}

    {relatedItems.map((item) => (
  • {item.label} {item.tail}
  • ))}
) }