cal.pub0.org/lib/isBrandingHidden.tsx

6 lines
193 B
TypeScript
Raw Permalink Normal View History

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