import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
import EntityTable from "../components/EntityTable/EntityTable";
import TableHeader from "../components/EntityTable/TableHeader/TableHeader";
import { TableBody, TableCell, TableRow } from "../components";
const meta = {
    title: "Table/EntityTable",
    component: EntityTable,
};
export default meta;
export const Primary = {
    args: {
        children: [
            _jsxs(_Fragment, { children: [_jsx(TableHeader, { children: _jsxs(TableRow, { children: [_jsx(TableCell, { variant: "head", children: "Primary Header" }), _jsx(TableCell, { variant: "head", children: "Sub Column 1" }), _jsx(TableCell, { variant: "head", children: "Sub Column 12" }), _jsx(TableCell, { variant: "head", children: "Sub Column 123" }), _jsx(TableCell, { variant: "head", children: "Sub Column 1234" }), _jsx(TableCell, { variant: "head", children: "Sub Column 12345" })] }) }), _jsx(TableBody, { children: Array(10)
                            .fill("")
                            .map((_, index) => {
                            return {
                                "Primary Header": _jsxs("div", { children: ["Primary Header : ", index] }),
                                "Sub Column 1": _jsxs("p", { children: [index, ". Sub Column 1 : Data"] }),
                                "Sub Column 12": _jsxs("p", { children: [index, ". Sub Column 12 : Data"] }),
                                "Sub Column 123": _jsxs("p", { children: [index, ". Sub Column 123 : Data"] }),
                                "Sub Column 1234": _jsxs("p", { children: [index, ". Sub Column 1234 : Data"] }),
                                "Sub Column 12345": _jsxs("p", { children: [index, ". Sub Column 12345 : Data"] }),
                            };
                        })
                            .map((row) => {
                            const rowsData = Object.values(row);
                            return (_jsx(TableRow, { children: rowsData.map((cell) => (_jsx(TableCell, { children: cell }))) }));
                        }) })] }),
        ],
    },
};
