@momentum-ui/react-collaboration
Version:
Cisco Momentum UI Framework for React Collaboration Applications
11 lines • 564 B
JavaScript
import { DEFAULTS } from './Icon.constants';
/**
* Creates the resolved name for SVG icons lookup.
* Used as part of the URL when dynamically loading icons.
* @param name - name of the icon
* @param weight - weight of the icon
* @param weightless - marks that this icon doesn't have a weight
* @returns - resolved name of the icon
*/
export var getResolvedSVGName = function (name, weight, weightless) { return (weightless ? "".concat(String(name)) : "".concat(String(name), "-").concat(weight || DEFAULTS.WEIGHT)); };
//# sourceMappingURL=Icon.utils.js.map