decord/source/components_native/common/ActionButton.tsx

28 lines
1,015 B
TypeScript
Raw Normal View History

// Module ID: 10987
// Function ID: 10988
2026-07-20 16:05:17 +00:00
// Name: ActionButton
// Dependencies: [19, 17, 21, 5033, 8173, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
// Module 10987 (ActionButton)
import ButtonHooks from "ButtonHooks" /* 5033 */;
import IconButton from "IconButton" /* 8173 */;
import noop from "module_19" /* 19 */;
2026-07-23 10:11:24 +00:00
require = fn;
const View = fn(17).View;
const jsx = fn(21).jsx;
const size = fn(2);
const result = size.fileFinishedImporting("components_native/common/ActionButton.tsx");
2026-07-20 16:05:17 +00:00
export default function ActionButton(style) {
let str = "tertiary";
if ("positive" === style.type) {
str = "active";
}
const obj2 = { style: style.styles, children: null };
({ onPress: obj3.onPress, accessibilityLabel: obj3.accessibilityLabel } = style);
obj2.children = jsx(IconButton.IconButton, { icon: jsx(style.IconComponent, { color: ButtonHooks.useButtonTextColorStyles(str).color, size: "sm" }), onPress: null, accessibilityLabel: null, variant: str, size: "sm" });
return <View style={arg0.styles}>{null}</View>;
2026-07-20 16:05:17 +00:00
};