"use strict";const l=require("react"),i=require("./useDiscoveryConfigs-367fb38f.js"),r=require("./FetchConfigsUtils-c73b687c.js"),m=require("./useAppConfigs-4e45ddb8.js");function L(g,c){const{state:{discoveryConfigData:a}}=i.useDiscoveryConfigs(),{state:{playerPortalConfigData:e,launcherData:n,twitchDropData:t}}=m.useAppConfigs();return{companyLogo:l.useMemo(()=>{var u;let s=null;switch(g){case r.AppName.LAUNCHER:{const o=n==null?void 0:n.logoVariant.data;s=o?o[c]:null;break}case r.AppName.PP:{const o=e==null?void 0:e.logoVariant.data;s=o?o[c]:null;break}case r.AppName.TWITCHDROP:{const o=t==null?void 0:t.logoVariant.data;s=o?o[c]:null;break}}const p=s??(a==null?void 0:a.companyLogo.data.defaultIndex)??0;return((u=a==null?void 0:a.companyLogo.data.images[p])==null?void 0:u.url)||""},[a,e,n,t])}}exports.useCompanyLogo=L;
