decord/source/components_native/common/ActionButton.tsx
github-actions 67d978d9fb chore: update source for alpha 346.0
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9672_m.js (378.6 MB)
2026-09-07 16:44:02 +00:00

28 lines
1.2 KiB
TypeScript

// Module ID: 10901
// Function ID: 10902
// Name: ActionButton
// Dependencies: [19, 17, 21, 4981, 8097, 2]
// Exports: default
// Module 10901 (ActionButton)
import noopAll from "noop" /* 19 */;
import styleProperties from "styleProperties" /* 4981 */;
import IconButton from "IconButton" /* 8097 */;
import { View } from "get ActivityIndicator" /* 17 */;
import { jsx } from "jsxProd" /* 21 */;
require = arg1;
noopAll;
const result = require("set").fileFinishedImporting("components_native/common/ActionButton.tsx");
export default function ActionButton(style) {
let str = "tertiary";
if ("positive" === style.type) {
str = "active";
}
let obj = styleProperties;
obj = { style: style.styles, children: null };
obj = { icon: jsx(style.IconComponent, { color: obj.useButtonTextColorStyles(str).color, size: "sm" }), onPress: jsx(IconButton.IconButton, { style: style.styles, children: null }), accessibilityLabel: null, variant: str, size: "sm" };
({ onPress: obj3[1], accessibilityLabel: obj3[2] } = style);
return <View icon={jsx(arg0.IconComponent, { color: obj.useButtonTextColorStyles(str).color, size: "sm" })} onPress={jsx(IconButton.IconButton, { style: arg0.styles, children: null })} accessibilityLabel={null} variant={str} size="sm" />;
};