import { _ as __assign } from '../tslib.es6-faad35dc.js';
import { jsx } from 'react/jsx-runtime';
import WalletCapsule from '../components/WalletCapsule.js';
import 'react';
import '@mui/material/styles';
import '../components/Typography.js';
import '@mui/material/Typography';
import '../theme/typography.js';
import '../theme/colors.js';
import '../theme/boxShadow.js';
import '../theme/borders.js';

var networks = [
    {
        name: "homestead",
        chainId: 1,
        ensAddress: "0x4268607537F34869fBb58a1B52209CcB061B3b74"
    },
    {
        name: "goerli",
        chainId: 5,
        ensAddress: "0x4268607537F34869fBb58a1B52209CcB061B3b74"
    },
    undefined
];
var argTypes = {
    truncateEsnAddressAfter: {
        name: "truncateEsnAddressAfter",
        defaultValue: 6,
        control: {
            type: "number"
        },
        table: {
            type: { summary: "number" },
            defaultValue: { summary: 6 }
        }
    },
    connected: {
        name: "connected",
        defaultValue: false,
        control: {
            type: "boolean"
        },
        table: {
            type: { summary: "boolean" },
            defaultValue: { summary: false }
        }
    },
    address: {
        name: "address",
        defaultValue: "0x4268607537F34869fBb58a1B52209CcB061B3b74",
        control: {
            type: "text"
        },
        table: {
            type: { summary: "text" },
            defaultValue: { summary: "0x4268607537F34869fBb58a1B52209CcB061B3b74" }
        }
    },
    balance: {
        name: "balance",
        defaultValue: 127.5454346368,
        control: {
            type: "number"
        },
        table: {
            type: { summary: "number" },
            defaultValue: { summary: 127.5454346368 }
        }
    },
    network: {
        options: Object.keys(networks),
        mapping: networks,
        control: {
            type: "select",
            labels: ["Mainet", "Görli", "None"]
        }
    },
    connectCopy: {
        name: "connectCopy",
        defaultValue: "Connect to a Wallet",
        control: {
            type: "text"
        },
        table: {
            type: { summary: "text" },
            defaultValue: { summary: "Connect to a Wallet" }
        }
    },
    unit: {
        name: "unit",
        defaultValue: "ETH",
        control: {
            type: "text"
        },
        table: {
            type: { summary: "text" },
            defaultValue: { summary: "ETH" }
        }
    },
    onUnconnectedClick: { table: { disable: true } },
    onConnectedClick: { table: { disable: true } }
};
var Template = function (args) {
    var fmtArgs = __assign(__assign({}, args), { balance: (args === null || args === void 0 ? void 0 : args.balance) ? Math.trunc(args.balance) : 0 });
    return jsx(WalletCapsule, __assign({}, fmtArgs), void 0);
};
var Default = Template.bind({});
var WalletCapsule_stories = {
    title: "Components/WalletCapsule",
    component: WalletCapsule,
    argTypes: argTypes
};

export { Default, WalletCapsule_stories as default };
