FrontPastel/node_modules/@mui/utils/node/generateUtilityClasses/generateUtilityClasses.js

15 lines
545 B
JavaScript

"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = generateUtilityClasses;
var _generateUtilityClass = _interopRequireDefault(require("../generateUtilityClass"));
function generateUtilityClasses(componentName, slots, globalStatePrefix = 'Mui') {
const result = {};
slots.forEach(slot => {
result[slot] = (0, _generateUtilityClass.default)(componentName, slot, globalStatePrefix);
});
return result;
}