{"version":3,"file":"BrandingContext.mjs","sources":["../../../../src/components/Branding/BrandingContext.tsx"],"sourcesContent":["import { createContext, useContext, type ComponentType } from 'react';\n\nexport interface BrandingContextValue {\n  /**\n   * Logo used by full-page loaders (e.g. PageLoader). Grafana core supplies a value that\n   * reflects custom branding; when unset (e.g. grafana-ui used standalone) components fall\n   * back to the default Grafana icon.\n   */\n  AppLogo?: ComponentType<{ className?: string }>;\n}\n\n// Optional by design: the empty default means no provider is required, so grafana-ui keeps\n// working when used outside Grafana core.\nexport const BrandingContext = createContext<BrandingContextValue>({});\n\nexport function useBranding(): BrandingContextValue {\n  return useContext(BrandingContext);\n}\n"],"names":[],"mappings":";;;AAaO,MAAM,eAAA,GAAkB,aAAA,CAAoC,EAAE;AAE9D,SAAS,WAAA,GAAoC;AAClD,EAAA,OAAO,WAAW,eAAe,CAAA;AACnC;;;;"}