@focuson/form_components
Version:
Components that can be used by @focuson/forms
11 lines (10 loc) • 495 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.makeButtons = void 0;
const jsx_runtime_1 = require("react/jsx-runtime");
const utils_1 = require("@focuson/utils");
const buttonFromPage_1 = require("./buttonFromPage");
function makeButtons({ allButtons, buttons }) {
return (0, utils_1.safeArray)(buttons).map((b, i) => (0, jsx_runtime_1.jsx)(buttonFromPage_1.ButtonFromPage, { button: b, buttons: allButtons }, b));
}
exports.makeButtons = makeButtons;