import { _ as __assign } from '../tslib.es6-faad35dc.js';
import { jsx, jsxs } from 'react/jsx-runtime';
import { useState } from 'react';
import MuiBox from '@mui/material/Box';
import { buttonArgTypes } from './utils/buttonStories.js';
import CardButton from '../components/CardButton.js';
import '../components/Button.js';
import '../clsx.m-6243b874.js';
import '@mui/material/styles';
import '@mui/material/Button';
import '../theme/colors.js';
import './utils/iconStories.js';
import '../components/Icon.js';
import '../icons/ArrowLeft.js';
import '../icons/ArrowRight.js';
import '../icons/CloseCircle.js';
import '../icons/InfoCircle.js';
import '../icons/ErrorCircle.js';
import '../icons/Attention.js';
import '../icons/HelpCircle.js';
import '../icons/Document.js';
import '../icons/DocumentText.js';
import '../icons/Lock.js';
import '../icons/Delete.js';
import '../icons/Users.js';
import '../icons/Stakefish.js';
import '../icons/Sound.js';
import '../icons/Beacon.js';
import '../icons/TriangleRight.js';
import '../icons/TriangleLeft.js';
import '../icons/TriangleUp.js';
import '../icons/TriangleDown.js';
import '../icons/Sent.js';
import '../icons/Download.js';
import '../icons/Faster.js';
import '../icons/Slower.js';
import '../icons/Usb.js';
import '../icons/Key.js';
import '../icons/Edit.js';
import '../icons/Expand.js';
import '../icons/Collapse.js';
import '../icons/Success.js';
import '../icons/SuccessCircle.js';
import '../icons/Fail.js';
import '../icons/Desktop.js';
import '../icons/Mobile.js';
import '../icons/Loading.js';
import '../icons/Upload.js';
import '../icons/Check.js';
import '../icons/ChevronLeft.js';
import '../icons/ChevronRight.js';
import '../icons/Plus.js';
import '../icons/Minus.js';
import '../icons/Globe.js';
import '../icons/Link.js';
import '../icons/Copy.js';
import '../icons/Medium.js';
import '../icons/Twitter.js';
import '../icons/Telegram.js';
import '../icons/Eth.js';
import '../icons/Sort.js';
import '../icons/Close.js';
import '../icons/DollarSign.js';
import '../icons/Search.js';
import '../icons/Range.js';
import '../icons/Instagram.js';
import '../icons/LinkedIn.js';
import '../icons/Reddit.js';
import '../icons/YouTube.js';
import '../icons/Chrome.js';
import '../icons/CloudConnect.js';
import '../icons/Update.js';
import '../icons/Menu.js';
import '../icons/Settings.js';

var Template = function (args) {
    return (jsx(CardButton, __assign({ buttonProps: __assign({}, args), active: args.active }, { children: args.children }), void 0));
};
var CardButtons = function () {
    var props = {
        size: "lg",
        align: "left",
        fullWidth: true
    };
    var _a = useState(1), activeCard = _a[0], setActiveCard = _a[1];
    var handleCardChange = function (item) {
        setActiveCard(item);
    };
    return (jsxs(MuiBox, __assign({ display: "flex", gap: 2 }, { children: [jsx(CardButton, __assign({ buttonProps: __assign(__assign({}, props), { onClick: function () { return handleCardChange(1); } }), active: activeCard === 1 }, { children: "As soon as after withdrawal enabled" }), void 0), jsx(CardButton, __assign({ buttonProps: __assign(__assign({}, props), { onClick: function () { return handleCardChange(2); } }), active: activeCard === 2 }, { children: "6 months after withdrawal enabled" }), void 0), jsx(CardButton, __assign({ buttonProps: __assign(__assign({}, props), { onClick: function () { return handleCardChange(3); } }), active: activeCard === 3 }, { children: "1 year after withdrawal enabled" }), void 0)] }), void 0));
};
var Default = Template.bind({});
var CardButton_stories = {
    title: "Components/CardButton",
    component: CardButton,
    argTypes: __assign(__assign({}, buttonArgTypes), { buttonProps: { table: { disable: true } }, startIconKey: { table: { disable: true } }, startIconColor: { table: { disable: true } }, startIconSize: { table: { disable: true } }, startIconRotate: { table: { disable: true } }, endIconKey: { table: { disable: true } }, endIconColor: { table: { disable: true } }, endIconSize: { table: { disable: true } }, endIconRotate: { table: { disable: true } }, active: {
            name: "active",
            defaultValue: false,
            control: { type: "boolean" }
        } })
};

export { CardButtons, Default, CardButton_stories as default };
