import { jsx as _jsx } from "react/jsx-runtime";
import { useLocation } from 'react-router-dom';
import { useWidgetConfig } from '../../providers';
import { navigationRoutes } from '../../utils';
import { WalletHeader } from '../Header/WalletHeader';
export const PoweredBy = () => {
    const { hiddenUI } = useWidgetConfig();
    const { pathname } = useLocation();
    const { walletManagement, subvariant } = useWidgetConfig();
    if (pathname.includes(navigationRoutes.fromToken) ||
        pathname.includes(navigationRoutes.toToken)) {
        return null;
    }
    return (_jsx("div", { className: "walletmini", children: !walletManagement && subvariant !== 'split' ? _jsx(WalletHeader, {}) : null }));
};
