"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
Object.defineProperty(exports, "useChainNotSupport", {
    enumerable: true,
    get: function() {
        return useChainNotSupport;
    }
});
const _react = require("react");
function useChainNotSupport(chain, chains) {
    const [chainNotSupport, setChainNotSupport] = (0, _react.useState)(false);
    const checkSupport = (chain, chains)=>{
        if (!chain || !chains) return false;
        const index = chains?.findIndex((c)=>c.chain_id === chain.id);
        return index < 0;
    };
    (0, _react.useEffect)(()=>{
        setChainNotSupport(checkSupport(chain, chains));
    }, [
        chains,
        chain
    ]);
    return chainNotSupport;
}

//# sourceMappingURL=useChainNotSupport.js.map