@open-formulieren/formio-builder
Version:
An opinionated Formio webform builder for Open Forms
40 lines (39 loc) • 678 B
JavaScript
function r(e, a) {
return e.map((t) => {
const {
code: l,
name: n,
isValid: o
} = t;
return {
value: l,
label: a.formatMessage({
id: "sjnifH",
defaultMessage: [{
type: 1,
value: "name"
}, {
type: 5,
value: "isValid",
options: {
true: {
value: []
},
other: {
value: [{
type: 0,
value: " (no longer valid)"
}]
}
}
}]
}, {
name: n,
isValid: o
})
};
});
}
export {
r as transformItems
};