"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
0 && (module.exports = {
    LastError: null,
    MultipleErrors: null,
    SingleError: null,
    default: null
});
function _export(target, all) {
    for(var name in all)Object.defineProperty(target, name, {
        enumerable: true,
        get: all[name]
    });
}
_export(exports, {
    LastError: function() {
        return LastError;
    },
    MultipleErrors: function() {
        return MultipleErrors;
    },
    SingleError: function() {
        return SingleError;
    },
    default: function() {
        return _default;
    }
});
const _jsxruntime = require("react/jsx-runtime");
const _ErrorPagination = require("./ErrorPagination");
const _withshadowportal = require("../../../storybook/with-shadow-portal");
const _react = require("react");
const meta = {
    title: 'ErrorPagination',
    component: _ErrorPagination.ErrorPagination,
    parameters: {
        layout: 'centered'
    },
    decorators: [
        _withshadowportal.withShadowPortal
    ]
};
const _default = meta;
// Mock errors for stories
const mockErrors = [
    {
        id: 1,
        runtime: true,
        error: new Error('First error'),
        frames: []
    },
    {
        id: 2,
        runtime: true,
        error: new Error('Second error'),
        frames: []
    },
    {
        id: 3,
        runtime: true,
        error: new Error('Third error'),
        frames: []
    }
];
const SingleError = {
    render: function ErrorPaginationStory() {
        const [activeIdx, setActiveIdx] = (0, _react.useState)(0);
        return /*#__PURE__*/ (0, _jsxruntime.jsx)(_ErrorPagination.ErrorPagination, {
            activeIdx: activeIdx,
            readyErrors: [
                mockErrors[0]
            ],
            onActiveIndexChange: setActiveIdx
        });
    }
};
const MultipleErrors = {
    render: function ErrorPaginationStory() {
        const [activeIdx, setActiveIdx] = (0, _react.useState)(1);
        return /*#__PURE__*/ (0, _jsxruntime.jsx)(_ErrorPagination.ErrorPagination, {
            activeIdx: activeIdx,
            readyErrors: mockErrors,
            onActiveIndexChange: setActiveIdx
        });
    }
};
const LastError = {
    render: function ErrorPaginationStory() {
        const [activeIdx, setActiveIdx] = (0, _react.useState)(2);
        return /*#__PURE__*/ (0, _jsxruntime.jsx)(_ErrorPagination.ErrorPagination, {
            activeIdx: activeIdx,
            readyErrors: mockErrors,
            onActiveIndexChange: setActiveIdx
        });
    }
};

if ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {
  Object.defineProperty(exports.default, '__esModule', { value: true });
  Object.assign(exports.default, exports);
  module.exports = exports.default;
}

//# sourceMappingURL=ErrorPagination.stories.js.map