"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getRelativeIconPath = exports.setAssetRoot = exports.getAssetRoot = exports.getAssetPath = void 0;
function getAssetPath(url) {
    return url;
}
exports.getAssetPath = getAssetPath;
var assets_1 = require("../constants/assets");
//HACK: url-loader has done some breaking things to how our icon asset imports are handled
//while this has been addressed for the main bundle build, this import is still undefined in
//the context of our jest tests. Since nothing in our jest test suite cares that this value
//be set at the moment, just use ?. as a workaround ($DEITY bless TS 3.7 for this wonderful
//syntactic addition!)
var mRoot = assets_1.ICON_ZOOM_OUT_FIXED === null || assets_1.ICON_ZOOM_OUT_FIXED === void 0 ? void 0 : assets_1.ICON_ZOOM_OUT_FIXED.replace("/zoom-out-fixed.png", "/../../");
function getAssetRoot() {
    return mRoot;
}
exports.getAssetRoot = getAssetRoot;
function setAssetRoot(root) {
    mRoot = root;
}
exports.setAssetRoot = setAssetRoot;
function getRelativeIconPath(iconName) {
    return "images/icons/".concat(iconName, ".png");
}
exports.getRelativeIconPath = getRelativeIconPath;
//# sourceMappingURL=asset.js.map