"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    var desc = Object.getOwnPropertyDescriptor(m, k);
    if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
      desc = { enumerable: true, get: function() { return m[k]; } };
    }
    Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
    Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
    o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
    if (mod && mod.__esModule) return mod;
    var result = {};
    if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
    __setModuleDefault(result, mod);
    return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
/**
 * title: "默认"
 * description: "基本使用方式。"
 */
var react_1 = __importStar(require("react"));
var console_components_1 = require("@alicloud/console-components");
var list = [
    { title: '已完成步骤', key: 1 },
    { title: '当前步骤', key: 2 },
    { title: '未完成最后步骤', key: 3 },
];
exports.default = (function () {
    var _a = (0, react_1.useState)(1), currentStep = _a[0], setCurrentStep = _a[1];
    var stepClick = (0, react_1.useCallback)(function (index) {
        setCurrentStep(index);
    }, []);
    var steps = list.map(function (item) { return (react_1.default.createElement(console_components_1.Step.Item, { key: item.key, title: item.title, onClick: function (index) { return stepClick(index); } })); });
    return (react_1.default.createElement("div", null,
        react_1.default.createElement(console_components_1.Step, { current: currentStep, shape: "circle", labelPlacement: "hoz" }, steps)));
});
