decord/source/components_native/common/ActionButton.tsx
2026-08-25 06:04:03 +00:00

28 lines
1.2 KiB
TypeScript

// Module ID: 9808
// Function ID: 9809
// Name: ActionButton
// Dependencies: [19, 17, 21, 4820, 7896, 2]
// Exports: default
// Module 9808 (ActionButton)
import noopAll from "noop" /* 19 */;
import styleProperties from "styleProperties" /* 4820 */;
import IconButton from "IconButton" /* 7896 */;
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" />;
};