Repository URL to install this package:
|
Version:
3.0.0 ▾
|
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
let index = 0;
function fromPropsToIdentifier(props) {
if (process.env.NODE_ENV === 'test') {
return '@@ID';
}
index += 1;
const identifier = props.identifier ||
props.className ||
props.vectorClassName ||
props.namespace ||
'EMPTY';
return identifier + index;
}
exports.fromPropsToIdentifier = fromPropsToIdentifier;
//# sourceMappingURL=fromPropsToIdentifier.js.map