23 lines
557 B
JavaScript
23 lines
557 B
JavaScript
|
"use strict";
|
||
|
|
||
|
Object.defineProperty(exports, "__esModule", {
|
||
|
value: true
|
||
|
});
|
||
|
exports.default = void 0;
|
||
|
const defaultGenerator = componentName => componentName;
|
||
|
const createClassNameGenerator = () => {
|
||
|
let generate = defaultGenerator;
|
||
|
return {
|
||
|
configure(generator) {
|
||
|
generate = generator;
|
||
|
},
|
||
|
generate(componentName) {
|
||
|
return generate(componentName);
|
||
|
},
|
||
|
reset() {
|
||
|
generate = defaultGenerator;
|
||
|
}
|
||
|
};
|
||
|
};
|
||
|
const ClassNameGenerator = createClassNameGenerator();
|
||
|
var _default = exports.default = ClassNameGenerator;
|