UNPKG

one

Version:

One is a new React Framework that makes Vite serve both native and web.

33 lines (32 loc) 933 B
var optionKeys = { left: "__oneStackToolbarLeft", right: "__oneStackToolbarRight", bottom: "__oneStackToolbarBottom" }; function appendStackToolbarConfig(options, props) { var _props_placement; return { ...options, [optionKeys[(_props_placement = props.placement) !== null && _props_placement !== void 0 ? _props_placement : "bottom"]]: props }; } function exposeStackToolbarConfig(options) { var toolbar = { left: options[optionKeys.left], right: options[optionKeys.right], bottom: options[optionKeys.bottom] }; if (!toolbar.left && !toolbar.right && !toolbar.bottom) return options; var { [optionKeys.left]: _left, [optionKeys.right]: _right, [optionKeys.bottom]: _bottom, ...publicOptions } = options; return { ...publicOptions, toolbar }; } export { appendStackToolbarConfig, exposeStackToolbarConfig }; //# sourceMappingURL=StackToolbar.shared.native.js.map