"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
Object.defineProperty(exports, "SecondaryLogo", {
    enumerable: true,
    get: function() {
        return SecondaryLogo;
    }
});
const _jsxruntime = require("react/jsx-runtime");
const _react = require("react");
const _appProvider = require("../provider/appProvider");
const _networkImage = require("../icon/networkImage");
const SecondaryLogo = (props)=>{
    const { appIcons } = (0, _react.useContext)(_appProvider.OrderlyAppContext);
    if (!appIcons) return null;
    const { secondary } = appIcons;
    if (secondary?.component) {
        return secondary.component;
    }
    if (secondary?.img) {
        return /*#__PURE__*/ (0, _jsxruntime.jsx)(_networkImage.NetworkImage, {
            size: props.size,
            type: "path",
            rounded: true,
            path: secondary.img
        });
    }
    return null;
};

//# sourceMappingURL=secondaryLogo.js.map