ra-core
Version:
Core components of react-admin, a frontend Framework for building admin applications on top of REST services, using ES6, React
12 lines • 373 B
JavaScript
/**
* @deprecated use useCreatePath instead
*/
export var linkToRecord = function (resource, id, linkType) {
if (linkType === void 0) { linkType = 'edit'; }
var link = "".concat(resource, "/").concat(encodeURIComponent(id));
if (linkType === 'show') {
return "".concat(link, "/show");
}
return link;
};
//# sourceMappingURL=linkToRecord.js.map