decord/source/design/components/ButtonGroup/native/ButtonGroup.native.tsx

37 lines
1 KiB
TypeScript
Raw Normal View History

// Module ID: 5447
// Function ID: 5448
2026-07-20 16:05:17 +00:00
// Name: ButtonGroup
// Dependencies: [19, 21, 4574, 4987, 2]
2026-07-20 16:05:17 +00:00
// Exports: ButtonGroup
// Module 5447 (ButtonGroup)
import Stack_Stack from "Stack/Stack" /* 4987 */;
import noop from "module_19" /* 19 */;
2026-07-23 10:11:24 +00:00
require = fn;
const jsx = fn(21).jsx;
const createStyles = fn(4574);
let closure_3 = createStyles.createStyles({ container: { paddingVertical: 16 } });
const size = fn(2);
const result = size.fileFinishedImporting("design/components/ButtonGroup/native/ButtonGroup.native.tsx");
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
export const ButtonGroup = function ButtonGroup(size) {
let str = size.size;
2026-07-21 22:01:30 +00:00
if (str === undefined) {
str = "md";
}
2026-07-29 08:29:29 +00:00
({ children, style } = size);
const merged = Object.assign(size, Object.assign({ size: 0, children: 0, style: 0 }));
2026-07-21 22:01:30 +00:00
let num = 8;
if ("sm" === str) {
num = 12;
}
2026-07-29 08:29:29 +00:00
const obj = {};
2026-07-20 16:05:17 +00:00
const merged1 = Object.assign(merged);
2026-07-29 08:29:29 +00:00
obj.spacing = num;
const items = [closure_3().container, style];
2026-07-29 08:29:29 +00:00
obj.style = items;
obj.children = children;
return jsx(Stack_Stack.Stack, {});
2026-07-20 16:05:17 +00:00
};