@quirks/core
Version:
39 lines (38 loc) • 781 B
JavaScript
import s from "eventemitter3";
class n {
constructor(e) {
this.events = new s(), this.options = e;
}
removeListeners() {
this.events.removeAllListeners();
}
/**
* Return dark mode logo mark
*/
get logoDark() {
const e = this.options.images.find(
(t) => {
var o;
return ((o = t.theme) == null ? void 0 : o.dark_mode) === !0 && t.layout === "logomark";
}
);
if (e)
return e.svg ? e.svg : e.png;
}
/**
* Return light mode logo mark
*/
get logoLight() {
const e = this.options.images.find(
(t) => {
var o;
return !((o = t.theme) != null && o.dark_mode) && t.layout === "logomark";
}
);
if (e)
return e.svg ? e.svg : e.png;
}
}
export {
n as Wallet
};