Skip to content

Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.

235 B
Raw Blame
import { PLANS } from "../utils";

export function getDisplayNameFromPlan(planSlug: string) {
  const cleanPlanName = planSlug.split("+")[0];
  const plan = PLANS.find((p) => p.slug === cleanPlanName);
  return plan?.name ?? "paid";
}