@chayns-components/core
Version:
A set of beautiful React components for developing your own applications with chayns.
13 lines (12 loc) • 485 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.getStackSizeFactor = void 0;
const getStackSizeFactor = icon => {
var _icon$match;
const sizeFactorString = (_icon$match = icon.match(/fa-stack-([\d])x/)) === null || _icon$match === void 0 ? void 0 : _icon$match[1];
return typeof sizeFactorString === 'string' ? parseInt(sizeFactorString, 10) : undefined;
};
exports.getStackSizeFactor = getStackSizeFactor;
//# sourceMappingURL=icon.js.map