import { _ as __assign } from '../tslib.es6-faad35dc.js';
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
import { useState } from 'react';
import Button from '../components/Button.js';
import { colorMap } from '../components/Alert.js';
import Snackbar from '../components/Snackbar.js';
import Icon from '../components/Icon.js';
import '../clsx.m-6243b874.js';
import '@mui/material/styles';
import '@mui/material/Button';
import '../theme/colors.js';
import '@mui/material/Alert';
import '@mui/material/Box';
import '@mui/material/Snackbar';
import '../components/IconButton.js';
import '@mui/material/IconButton';
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 NoAction = function () {
    var _a = useState(false), open = _a[0], setOpen = _a[1];
    return (jsxs(Fragment, { children: [jsx(Button, __assign({ color: "primary", onClick: function () { return setOpen(true); } }, { children: "Open Snackbar with no action, but hides in 3 seconds" }), void 0), jsx(Snackbar, __assign({ autoHideDuration: 3000, open: open, onClose: function () { return setOpen(false); } }, { children: "Snackbar opened" }), void 0)] }, void 0));
};
var NoActionClickAway = function () {
    var _a = useState(false), open = _a[0], setOpen = _a[1];
    return (jsxs(Fragment, { children: [jsx(Button, __assign({ color: "primary", onClick: function () { return setOpen(true); } }, { children: "Open Snackbar with no action, but hides when click away" }), void 0), jsx(Snackbar, __assign({ open: open, onClose: function () { return setOpen(false); }, ClickAwayListenerProps: { onClickAway: function () { return setOpen(false); } }, alertProps: { icon: jsx(Icon, { iconKey: "infoCircle", size: "sm" }, void 0) } }, { children: "Snackbar opened" }), void 0)] }, void 0));
};
var DefaultAction = function () {
    var _a = useState(false), open = _a[0], setOpen = _a[1];
    return (jsxs(Fragment, { children: [jsx(Button, __assign({ color: "primary", onClick: function () { return setOpen(true); } }, { children: "Open Snackbar with default close action" }), void 0), jsx(Snackbar, __assign({ open: open, onClose: function () { return setOpen(false); }, action: "close" }, { children: "Snackbar opened" }), void 0)] }, void 0));
};
var CustomAction = function (args) {
    var _a = useState(false), open = _a[0], setOpen = _a[1];
    return (jsxs(Fragment, { children: [jsx(Button, __assign({ color: "primary", onClick: function () { return setOpen(true); } }, { children: "Open Snackbar with custom action, error color" }), void 0), jsx(Snackbar, __assign({ open: open, onClose: function () { return setOpen(false); }, action: jsx(Button, __assign({ size: "sm", variant: "text", sx: { "&.MuiButton-text": { padding: 0, color: colorMap.error, textDecoration: "underline" } }, onClick: function () { return setOpen(false); } }, { children: "Change wallet" }), void 0), alertProps: { color: "error" } }, { children: "We only support mainnet at this moment." }), void 0)] }, void 0));
};
var Default = DefaultAction.bind({});
var Snackbar_stories = {
    title: "Components/Snackbar",
    component: Snackbar
};

export { CustomAction, Default, NoAction, NoActionClickAway, Snackbar_stories as default };
