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