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 React, { useState } from 'react';
import { Slider } from '@alifd/next';
export default (function () {
    var _a = useState(0), index = _a[0], setIndex = _a[1];
    var settings = {
        className: 'custom-slide',
        arrowPosition: 'outer',
        dots: false,
        infinite: true,
        speed: 500,
        slidesToShow: 1,
        slidesToScroll: 1,
        onChange: function (index) {
            // console.log('change Slide index', index);
            setIndex(index + 1);
        },
    };
    return (React.createElement(Slider, __assign({}, settings, { activeIndex: index }),
        React.createElement("div", null,
            React.createElement("h3", null, "1")),
        React.createElement("div", null,
            React.createElement("h3", null, "2")),
        React.createElement("div", null,
            React.createElement("h3", null, "3")),
        React.createElement("div", null,
            React.createElement("h3", null, "4")),
        React.createElement("div", null,
            React.createElement("h3", null, "5")),
        React.createElement("div", null,
            React.createElement("h3", null, "6")),
        React.createElement("div", null,
            React.createElement("h3", null, "7")),
        React.createElement("div", null,
            React.createElement("h3", null, "8")),
        React.createElement("div", null,
            React.createElement("h3", null, "9"))));
});
