{"version":3,"file":"BrandingContext.cjs","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":["createContext","useContext"],"mappings":";;;;;;;AAaO,MAAM,eAAA,GAAkBA,mBAAA,CAAoC,EAAE;AAE9D,SAAS,WAAA,GAAoC;AAClD,EAAA,OAAOC,iBAAW,eAAe,CAAA;AACnC;;;;;"}