// tdd-guard:skip — thin operator-config accessor (reads NEXT_PUBLIC env), no logic to test.

/**
 * Host-organisation branding for agendas.
 *
 * The "host" is the buying organisation that runs the workshop (e.g. the OEM).
 * Its label + logo are operator-configured via env, NOT hardcoded — this keeps
 * the agenda feature portable across customers (ADR 010 / ADR 015): no
 * customer-specific identifier lives in the product core.
 *
 *   NEXT_PUBLIC_HOST_ORG_LABEL     e.g. the org short name shown in headers
 *   NEXT_PUBLIC_HOST_ORG_LOGO_URL  e.g. /brand/<host>-logo.svg (always shown in exports)
 */

export interface HostOrg {
  /** Short label shown for host participants and in export headers. Empty if unset. */
  label: string
  /** Public URL of the host logo used in PDF/Excel exports. Null if unset. */
  logoUrl: string | null
}

export function getHostOrg(): HostOrg {
  return {
    label: process.env.NEXT_PUBLIC_HOST_ORG_LABEL ?? '',
    logoUrl: process.env.NEXT_PUBLIC_HOST_ORG_LOGO_URL ?? null,
  }
}
