decord/source/design/components/Modal/native/ModalActionButton.native.tsx

38 lines
1.2 KiB
TypeScript
Raw Normal View History

// Module ID: 11147
// Function ID: 11148
2026-07-20 16:05:17 +00:00
// Name: ModalActionButton
// Dependencies: [19, 17, 21, 4638, 5060, 2]
2026-07-20 16:05:17 +00:00
// Exports: ModalActionButton
// Module 11147 (ModalActionButton)
import components_Button_Button from "components/Button/Button" /* 5060 */;
import noop from "module_19" /* 19 */;
2026-07-23 10:11:24 +00:00
require = fn;
const View = fn(17).View;
const jsxProd = fn(21);
({ jsx: c3, Fragment: closure_4, jsxs: hasOwnProperty } = jsxProd);
const createStyles = fn(4638);
let closure_6 = createStyles.createStyles({ spacer: { marginTop: 12 } });
const size = fn(2);
const result = size.fileFinishedImporting("design/components/Modal/native/ModalActionButton.native.tsx");
2026-07-20 16:05:17 +00:00
export const ModalActionButton = function ModalActionButton(variant) {
variant = variant.variant;
const merged = Object.assign(variant, Object.assign({ variant: 0 }));
2026-07-29 08:29:29 +00:00
let tmp5 = "secondary" === variant;
if (tmp5) {
const obj = { style: tmp2.spacer };
tmp5 = React3(View, obj);
2026-07-20 16:05:17 +00:00
}
const obj2 = { children: null };
2026-07-29 08:29:29 +00:00
const items = [tmp5, ];
const obj3 = {};
2026-07-20 16:05:17 +00:00
const merged1 = Object.assign(merged);
obj3.variant = variant;
obj3.size = "lg";
items[1] = React3(components_Button_Button.Button, obj3);
obj2.children = items;
return hasOwnProperty(React4, obj2);
2026-07-20 16:05:17 +00:00
};