decord/alpha/source/components_native/common/ActionButton.tsx
github-actions 6eea20b8e1 chore: update source for alpha 348.3
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/05xxx/module_5014.js (118.4 MB)
2026-09-24 10:59:02 +00:00

27 lines
1,015 B
TypeScript

// Module ID: 11245
// Function ID: 11246
// Name: ActionButton
// Dependencies: [19, 17, 21, 5279, 8269, 2]
// Exports: default
// Module 11245 (ActionButton)
import ButtonHooks from "ButtonHooks" /* 5279 */;
import IconButton from "IconButton" /* 8269 */;
import noop from "module_19" /* 19 */;
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");
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>;
};