import { getTranslation } from "@turbostarter/i18n/server"; const stats = [ { key: "reports" }, { key: "rating" }, { key: "dimensions" }, ] as const; export const SocialProof = async () => { const { t } = await getTranslation({ ns: "marketing" }); return (
{stats.map((stat) => { const text = t(`socialProof.${stat.key}` as const); const match = text.match(/^([\d.+]+)\s+(.+)$/); const number = match?.[1] ?? text; const label = match?.[2] ?? ""; return (
{number} {label}
); })}
); };