6 lines
193 B
TypeScript
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";
|
||
|
}
|