@keyvaluesystems/react-stepper
Version:
A fully customizable stepper component
18 lines • 497 B
JavaScript
/**
* To get the Style of element from the style object provided
* @function
* @param {{[key in Elements]?: IStyleFunction}} styles
* @param {Elements} element
* @param {IStep} step
* @param {number} index
* @returns {object}
*/
var getStyles = function (styles, element, step, index) {
var getElementStyle = styles[element];
if (getElementStyle) {
return getElementStyle(step, index);
}
return {};
};
export default getStyles;
//# sourceMappingURL=getStyles.js.map