cal.pub0.org/apps/web/lib/isBrandingHidden.tsx

6 lines
193 B
TypeScript

import { User } from "@prisma/client";
export function isBrandingHidden<TUser extends Pick<User, "hideBranding" | "plan">>(user: TUser) {
return user.hideBranding && user.plan !== "FREE";
}