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

export function getPricingPlans(dictionary: Dictionary) {
  return dictionary.pricing.map((plan) => ({
    name: typeof plan[0] === "string" ? plan[0] : "",
    description: typeof plan[1] === "string" ? plan[1] : "",
    features: Array.isArray(plan[2]) ? plan[2] : [],
  }));
}
