/**
 * Feature flags — read from environment variables.
 * NEXT_PUBLIC_ prefix makes them available in both server and client components.
 *
 * NEXT_PUBLIC_INVENTORY_ENABLED=false  →  hides inventory tracking (site qty/consumption)
 *   Vendor list, product catalogue, and cart remain available for PO creation regardless.
 *
 * NEXT_PUBLIC_SUBMITTER_VIEW_ALL_ENABLED=true  →  lets submitters (TECHNICAL / MANNING)
 *   read every PO (not just their own), open the History page, and use the export buttons.
 *   Opt-in (off unless explicitly "true") because it widens read access. Submitters stay
 *   read-only — it grants no approval, payment, or edit rights. See lib/permissions.ts
 *   (canViewAllPos / submitterCanViewAll).
 *
 * NEXT_PUBLIC_CREWING_ENABLED=true  →  exposes the Crewing module (crew/ranks/requisitions
 *   etc.). Opt-in (off unless explicitly "true") because the feature is built incrementally;
 *   keeping it dark by default leaves production unchanged. See lib/permissions.ts (§6 matrix)
 *   and wiki Crewing-Implementation-Spec.
 */

export const INVENTORY_ENABLED =
  process.env.NEXT_PUBLIC_INVENTORY_ENABLED !== "false";

export const SUBMITTER_VIEW_ALL_ENABLED =
  process.env.NEXT_PUBLIC_SUBMITTER_VIEW_ALL_ENABLED === "true";

export const CREWING_ENABLED =
  process.env.NEXT_PUBLIC_CREWING_ENABLED === "true";
