"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.PoweredBy = void 0;
const jsx_runtime_1 = require("react/jsx-runtime");
const react_router_dom_1 = require("react-router-dom");
const providers_1 = require("../../providers");
const utils_1 = require("../../utils");
const WalletHeader_1 = require("../Header/WalletHeader");
const PoweredBy = () => {
    const { hiddenUI } = (0, providers_1.useWidgetConfig)();
    const { pathname } = (0, react_router_dom_1.useLocation)();
    const { walletManagement, subvariant } = (0, providers_1.useWidgetConfig)();
    if (pathname.includes(utils_1.navigationRoutes.fromToken) ||
        pathname.includes(utils_1.navigationRoutes.toToken)) {
        return null;
    }
    return ((0, jsx_runtime_1.jsx)("div", { className: "walletmini", children: !walletManagement && subvariant !== 'split' ? (0, jsx_runtime_1.jsx)(WalletHeader_1.WalletHeader, {}) : null }));
};
exports.PoweredBy = PoweredBy;
