var __assign = (this && this.__assign) || function () {
    __assign = Object.assign || function(t) {
        for (var s, i = 1, n = arguments.length; i < n; i++) {
            s = arguments[i];
            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
                t[p] = s[p];
        }
        return t;
    };
    return __assign.apply(this, arguments);
};
import { jsx as _jsx } from "react/jsx-runtime";
import Preview from 'preview';
import { initChainStyles } from 'config/stylebook';
var AppOptions = {
    version: 'widget/v1',
    kind: 'Application',
    metadata: {
        name: 'subscan widget',
    },
    spec: {
        components: [
            {
                id: 'timeline0',
                type: 'core/v1/timeline',
                properties: {
                    data: [
                        {
                            from: '2rGH1BB1E6fvTqiVrHMwNw8r5VrFYznvafn2Uf7amvYdCZ9f',
                            to: '2qSbd2umtD4KmV2X4zZk5QkCvmYKyiR2ysAeM1Eca6vcvg7N',
                            extrinsic_index: '10426613-1',
                        },
                        {
                            from: '2rGH1BB1E6fvTqiVrHMwNw8r5VrFYznvafn2Uf7amvYdCZ9f',
                            to: '2qSbd2umtD4KmV2X4zZk5QkCvmYKyiR2ysAeM1Eca6vcvg7N',
                            extrinsic_index: '10426613-2',
                        },
                        {
                            from: '2rGH1BB1E6fvTqiVrHMwNw8r5VrFYznvafn2Uf7amvYdCZ9f',
                            to: '2qSbd2umtD4KmV2X4zZk5QkCvmYKyiR2ysAeM1Eca6vcvg7N',
                            extrinsic_index: '10426613-3',
                        },
                    ],
                    columns: [
                        {
                            title: 'From',
                            type: 'text',
                            width: '',
                            dataKey: 'from',
                            prePath: '/account',
                            ellipsis: true,
                        },
                        {
                            title: 'To',
                            type: 'text',
                            width: '',
                            dataKey: 'to',
                            prePath: '/account',
                            ellipsis: true,
                        },
                        {
                            title: 'Extrinsic Index',
                            type: 'link',
                            width: '',
                            dataKey: 'extrinsic_index',
                            prePath: '/extrinsic',
                        },
                    ],
                },
                traits: [],
            },
        ],
    },
};
export default {
    title: 'Subscan Lib/Timeline',
    component: Preview,
};
var Template = function (args) { return _jsx(Preview, __assign({}, args)); };
export var Index = Template.bind({});
Index.args = __assign({ options: AppOptions }, initChainStyles);
