import { _ as __assign } from '../tslib.es6-faad35dc.js';
import { jsx } from 'react/jsx-runtime';
import Icon from '../components/Icon.js';
import ThumbnailInfoBar from '../components/ThumbnailInfoBar.js';
import TableContainer, { createCellData } from '../components/TableContainer.js';
import '@mui/material/styles';
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';
import 'react';
import '@mui/material/Box';
import '../theme/boxShadow.js';
import '../components/Typography.js';
import '@mui/material/Typography';
import '../theme/typography.js';
import '../components/IconButton.js';
import '@mui/material/IconButton';
import '@mui/material/Table';
import '@mui/material/TableRow';
import '@mui/material/TableBody';
import '@mui/material/TableHead';
import '@mui/material/TableContainer';
import '@mui/material/TableCell';

var WebsiteLinkIcon = function (_a) {
    var url = _a.url;
    return (jsx("a", __assign({ href: url }, { children: jsx(Icon, { iconKey: "link", color: "secondary", size: "md" }, void 0) }), void 0));
};
var Default = function () {
    return jsx(TableContainer, { bodyCellsRows: bodyCellsRows, headCells: headCells }, void 0);
};
var TableContainer_stories = {
    title: "Table/TableContainer",
    component: TableContainer,
    subcomponents: {
        ThumbnailInfoBar: ThumbnailInfoBar
    },
    parameters: {
        docs: {
            description: {
                component: "Pre-composed table, taking data as props."
            },
            source: {
                type: "code"
            }
        }
    }
};
/**
 * Data
 */
var cellDataKeys = ["validator", "votingPower", "delegators", "fees", "website"];
var bodyCellsRows = [
    __assign({}, createCellData([
        {
            content: (jsx(ThumbnailInfoBar, { thumbnailUrl: "https://s3.amazonaws.com/keybase_processed_uploads/a084e1a96ecc3f24bd57dfec517a9205_360_360.jpg", thumbnailAlt: "Bi23 Labs", title: "Bi23 Labs", subtitle: "cosmosvaloper1hctafaqveg7dxad8aedf32aq2j877rrec2f5au" }, void 0))
        },
        {
            content: "0.00%",
            props: { align: "right" }
        },
        {
            content: "1",
            props: { align: "right" }
        },
        {
            content: "0.00%",
            props: { align: "right" }
        },
        {
            content: jsx(WebsiteLinkIcon, { url: "https://bi23.com/" }, void 0),
            props: { align: "center" }
        }
    ], cellDataKeys)),
    __assign({}, createCellData([
        {
            content: (jsx(ThumbnailInfoBar, { thumbnailUrl: "https://s3.amazonaws.com/keybase_processed_uploads/0896b54e305b3817c20ee844066ae905_360_360.jpg", thumbnailAlt: "cosmosave", title: "cosmosave", subtitle: "cosmosvaloper18fuhq6r933854432m0692m05ddqdvzm2gysypr" }, void 0))
        },
        {
            content: "0.00%",
            props: { align: "right" }
        },
        {
            content: "5",
            props: { align: "right" }
        },
        {
            content: "0.5%",
            props: { align: "right" }
        },
        {
            content: jsx(WebsiteLinkIcon, { url: "https://cosmosave.wixsite.com/atom" }, void 0),
            props: { align: "center" }
        }
    ], cellDataKeys)),
    __assign({}, createCellData([
        {
            content: (jsx(ThumbnailInfoBar, { thumbnailUrl: "https://s3.amazonaws.com/keybase_processed_uploads/e7aca2c60e1b658db8cc8f175ce9aa05_360_360.jpg", thumbnailAlt: "Swiss Staking", title: "Swiss Staking", subtitle: "cosmosvaloper1y0us8xvsvfvqkk9c6nt5cfyu5au5tww2ztve7q" }, void 0))
        },
        {
            content: "0.24%",
            props: { align: "right" }
        },
        {
            content: "1,007",
            props: { align: "right" }
        },
        {
            content: "1.00%",
            props: { align: "right" }
        },
        {
            content: jsx(WebsiteLinkIcon, { url: "https://swiss-staking.ch/" }, void 0),
            props: { align: "center" }
        }
    ], cellDataKeys))
];
var headCells = [
    {
        id: "validator",
        label: "Validator"
    },
    {
        id: "votingPower",
        label: "Voting Power, ATOM",
        props: {
            align: "right"
        },
        hidden: {
            smDown: true
        }
    },
    {
        id: "delegators",
        label: "Delegators",
        props: { align: "right" },
        hidden: {
            smDown: true
        }
    },
    {
        id: "fees",
        label: "Fees",
        props: { align: "right" },
        hidden: {
            smDown: true
        }
    },
    {
        id: "website",
        label: "Website",
        props: { align: "center" },
        hidden: {
            smDown: true
        }
    }
];

export { Default, TableContainer_stories as default };
