decord/beta/source/components_native/common/ActionButton.tsx

84 lines
2.8 KiB
TypeScript
Raw Permalink Normal View History

2026-10-12 16:32:48 +00:00
// Module ID: 10258
// Function ID: 10259
// Name: ActionButton
2026-10-12 16:32:48 +00:00
// Dependencies: [19, 17, 21, 558, 576, 5385, 7574, 2]
2026-10-12 16:32:48 +00:00
// Module 10258 (ActionButton)
2026-10-01 14:13:23 +00:00
import react_native from "react-native" /* 17 */;
import Fragment from "Fragment" /* 21 */;
2026-10-02 13:37:24 +00:00
import react2 from "react" /* 576 */;
2026-10-12 16:32:48 +00:00
import ButtonHooks from "ButtonHooks" /* 5385 */;
import IconButton2 from "IconButton" /* 7574 */;
2026-10-01 14:13:23 +00:00
import react from "react" /* 19 */;
2026-10-02 13:37:24 +00:00
import ReactCompilerGating from "ReactCompilerGating" /* 558 */;
2026-10-01 14:13:23 +00:00
import size from "module_2" /* 2 */;
2026-10-01 14:13:23 +00:00
const View = react_native.View;
const jsx = Fragment.jsx;
2026-10-12 16:32:48 +00:00
const tmp3 = ReactCompilerGating.isReactCompilerEnabled() ? (function ActionButton(IconComponent) {
2026-10-02 13:37:24 +00:00
const obj = react2;
const cResult = obj.c(11);
IconComponent = IconComponent.IconComponent;
let str = "tertiary";
if ("positive" === IconComponent.type) {
str = "active";
}
const tmpResult = ButtonHooks;
const color = tmpResult.useButtonTextColorStyles(str).color;
if (cResult[0] === IconComponent) {
let tmp4;
if (cResult[1] === color) {
tmp4 = cResult[2];
}
if (cResult[3] === IconComponent.accessibilityLabel) {
if (cResult[4] === IconComponent.onPress) {
if (cResult[5] === tmp4) {
let tmp6;
if (cResult[6] === str) {
tmp6 = cResult[7];
}
if (cResult[8] === IconComponent.styles) {
let tmp9;
if (cResult[9] === tmp6) {
tmp9 = cResult[10];
}
return tmp9;
}
const tmp12 = <View style={arg0.styles}>{tmp6}</View>;
cResult[8] = IconComponent.styles;
cResult[9] = tmp6;
cResult[10] = tmp12;
tmp9 = tmp12;
}
}
}
({ onPress: obj3.onPress, accessibilityLabel: obj3.accessibilityLabel } = IconComponent);
const tmp8 = jsx(IconButton2.IconButton, { icon: tmp4, onPress: null, accessibilityLabel: null, variant: str, size: "sm" });
cResult[3] = IconComponent.accessibilityLabel;
cResult[4] = IconComponent.onPress;
cResult[5] = tmp4;
cResult[6] = str;
cResult[7] = tmp8;
tmp6 = tmp8;
}
const tmp5 = <IconComponent color={color} size="sm" />;
cResult[0] = IconComponent;
cResult[1] = color;
cResult[2] = tmp5;
tmp4 = tmp5;
2026-10-12 16:32:48 +00:00
}) : (function ActionButton(IconComponent) {
let str = "tertiary";
2026-10-01 14:13:23 +00:00
IconComponent = IconComponent.IconComponent;
if ("positive" === IconComponent.type) {
str = "active";
}
2026-10-01 14:13:23 +00:00
const obj = ButtonHooks;
const color = obj.useButtonTextColorStyles(str).color;
const IconButton = IconButton2.IconButton;
({ onPress: obj3.onPress, accessibilityLabel: obj3.accessibilityLabel } = IconComponent);
return <View style={arg0.styles}>{null}</View>;
2026-10-02 13:37:24 +00:00
});
const result = size.fileFinishedImporting("components_native/common/ActionButton.tsx");
export default tmp3;