"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.StepLabel = void 0;
const jsx_runtime_1 = require("react/jsx-runtime");
const StepLabel_1 = __importDefault(require("@mui/material/StepLabel"));
const react_1 = require("react");
const StepIcon_1 = require("../StepIcon");
const StepLabel = (props) => {
    const { isSelected, icon: Icon, ...restProps } = props;
    const stepIconRender = (0, react_1.useCallback)(({ active, completed, error }) => ((0, jsx_runtime_1.jsx)(StepIcon_1.StepIcon, { icon: Icon, isSelected: isSelected, active: active, completed: completed, error: error })), [isSelected]);
    return (0, jsx_runtime_1.jsx)(StepLabel_1.default, { StepIconComponent: stepIconRender, ...restProps });
};
exports.StepLabel = StepLabel;
