25 lines
432 B
TypeScript
25 lines
432 B
TypeScript
import type { UserType } from "@/app/(auth)/auth";
|
|
|
|
type Entitlements = {
|
|
maxMessagesPerHour: number;
|
|
};
|
|
|
|
export const entitlementsByUserType: Record<UserType, Entitlements> = {
|
|
/*
|
|
* For users without an account
|
|
*/
|
|
guest: {
|
|
maxMessagesPerHour: 10,
|
|
},
|
|
|
|
/*
|
|
* For users with an account
|
|
*/
|
|
regular: {
|
|
maxMessagesPerHour: 10,
|
|
},
|
|
|
|
/*
|
|
* TODO: For users with an account and a paid membership
|
|
*/
|
|
};
|