import type { Metadata } from "next" import { getTranslations, getMessages, setRequestLocale } from "next-intl/server" import { Link } from "@/i18n/navigation" 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.security.meta" }) return { title: t("title"), description: t("description") } } type RelatedItem = { label: string; href: string; tail: string } export default async function PostInstallSecurityPage({ params, }: { params: Promise<{ locale: string }> }) { const { locale } = await params setRequestLocale(locale) const t = await getTranslations({ locale, namespace: "docs.postInstall.security" }) const messages = (await getMessages({ locale })) as unknown as { docs: { postInstall: { security: { rpcbind: { whyItems: string[] } related: { items: RelatedItem[] } } } } } const whyItems = messages.docs.postInstall.security.rpcbind.whyItems const relatedItems = messages.docs.postInstall.security.related.items const code = (chunks: React.ReactNode) => {chunks} const strong = (chunks: React.ReactNode) => {chunks} const em = (chunks: React.ReactNode) => {chunks} const uninstallLink = (chunks: React.ReactNode) => ( {chunks} ) return (
{t.rich("intro.body", { strong, em })}

{t("rpcbind.heading")}

{t.rich("rpcbind.intro", { code, strong })}

{t("rpcbind.whyTitle")}

    {whyItems.map((_, idx) => (
  • {t.rich(`rpcbind.whyItems.${idx}`, { code })}
  • ))}
{t.rich("rpcbind.nfsBody", { strong, em, code })}

{t("rpcbind.runsTitle")}

{t("rpcbind.runsOutro")}

{t("rpcbind.verifyTitle")}

{t.rich("rpcbind.verifyBody", { code })}

{t.rich("rpcbind.reversibleBody", { em, link: uninstallLink })}

{t("related.heading")}

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