import { jsx as _jsx } from "react/jsx-runtime";
import { isEthAddress } from "@equilab/utils";
import React from "react";
import { useBase } from "../../contexts/substrate/base";
export const useDevParams = () => {
    const { validateSubstrateAddress } = useBase();
    const [tokenAddress, setTokenAddress] = React.useState("0x2515E9d16f37fAd86C8e880A769cE20A5da160FA");
    const tokenAddressError = React.useMemo(() => !isEthAddress(tokenAddress) && _jsx("div", { children: "Incorrect Address" }), [tokenAddress]);
    const [bridgeAddress, setBridgeAddress] = React.useState("0x22f805cce19D69c691E2B37A2Afcf793D1BCD5F6");
    const bridgeAddressError = React.useMemo(() => !isEthAddress(bridgeAddress) && _jsx("div", { children: "Incorrect Address" }), [bridgeAddress]);
    const [spender, setSpender] = React.useState("0xA3B0EDAECaf5Eb0945cd37F85614828f94a677dB");
    const spenderError = React.useMemo(() => !isEthAddress(spender) && _jsx("div", { children: "Incorrect Address" }), [spender]);
    const [dest, setDest] = React.useState("1");
    const [resourceId, setResourceId] = React.useState("0x000000000000000000000000000000c76ebe4a02bbc34786d860b355f5a5ce00");
    const [polkadotAddress, setPolkadotAddress] = React.useState("5DnoYz3koaRcMZ9Hj4FmQ2nNRKQfS73yBmEzzM9SsPn9cLtb");
    const polkadotAddressError = React.useMemo(() => !validateSubstrateAddress(polkadotAddress) && _jsx("div", { children: "Incorrect Address" }), [polkadotAddress, validateSubstrateAddress]);
    const [amount, setAmount] = React.useState("");
    return {
        amount,
        bridgeAddress,
        bridgeAddressError,
        dest,
        polkadotAddress,
        polkadotAddressError,
        resourceId,
        spender,
        spenderError,
        tokenAddress,
        tokenAddressError,
        setAmount,
        setBridgeAddress,
        setDest,
        setPolkadotAddress,
        setResourceId,
        setSpender,
        setTokenAddress,
    };
};
//# sourceMappingURL=hooks.js.map