import type { Dictionary } from "@/lib/i18n";
import type { MarketingSlug } from "@/lib/routes";

export function getPageCopy(dictionary: Dictionary, slug: MarketingSlug | "products") {
  const content = dictionary.pages[slug];

  return {
    eyebrow: content[0] ?? "PureSaaS",
    title: content[1] ?? content[0] ?? "PureSaaS",
    description: content[2] ?? "",
  };
}
