import { useLicenseContext } from "../contexts/LicenseContext"; /** * Returns true if the active license edition is "premium". * Ergonomic helper only — the server enforces entitlements independently (cf. ADR 0011 §UX). * Reads the shared LicenseContext (single boot load) — no per-call invoke. */ export function useIsPremium(): boolean { const { edition } = useLicenseContext(); return edition === "premium"; }