Add trial system

This commit is contained in:
Owen
2026-04-18 13:40:50 -07:00
parent b2d5a1ffdf
commit 55989c2019
18 changed files with 631 additions and 20 deletions

View File

@@ -10,6 +10,10 @@ type SubscriptionStatusContextType = {
subscribed: boolean;
/** True when org has exceeded plan limits (sites, users, etc.). Only set when build === saas. */
limitsExceeded: boolean;
/** Unix timestamp (ms) when the trial expires, or null if not in trial. */
trialExpiresAt: number | null;
/** True if the organization is currently in a trial period. */
isTrial: boolean;
};
const SubscriptionStatusContext = createContext<