@openshift-assisted/ui-lib
Version:
React component library for the Assisted Installer UI
14 lines • 526 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.formikLabelsToLabels = exports.labelsToFormikValue = void 0;
const labelsToFormikValue = (labels) => Object.keys(labels).map((key) => ({
key,
value: labels[key],
}));
exports.labelsToFormikValue = labelsToFormikValue;
const formikLabelsToLabels = (labels) => labels.reduce((acc, curr) => {
acc[curr.key] = curr.value;
return acc;
}, {});
exports.formikLabelsToLabels = formikLabelsToLabels;
//# sourceMappingURL=labels.js.map