UNPKG

@wener/ui

Version:

16 lines 625 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.withLabelTrans = void 0; const react_1 = __importDefault(require("react")); const react_i18next_1 = require("react-i18next"); function withLabelTrans(item) { if (typeof item.label === 'string') { item.label = react_1.default.createElement(react_i18next_1.Trans, null, item.label); } return item; } exports.withLabelTrans = withLabelTrans; //# sourceMappingURL=withLabelTrans.js.map