decord/source/components_native/common/ActionButton.tsx

29 lines
1.2 KiB
TypeScript
Raw Normal View History

2026-08-25 06:04:03 +00:00
// Module ID: 9808
// Function ID: 9809
2026-07-20 16:05:17 +00:00
// Name: ActionButton
2026-08-25 06:04:03 +00:00
// Dependencies: [19, 17, 21, 4820, 7896, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-25 06:04:03 +00:00
// Module 9808 (ActionButton)
2026-08-24 06:08:38 +00:00
import noopAll from "noop" /* 19 */;
2026-08-25 06:04:03 +00:00
import styleProperties from "styleProperties" /* 4820 */;
import IconButton from "IconButton" /* 7896 */;
2026-08-24 06:08:38 +00:00
import { View } from "get ActivityIndicator" /* 17 */;
import { jsx } from "jsxProd" /* 21 */;
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
require = arg1;
noopAll;
const result = require("set").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";
}
2026-08-24 06:08:38 +00:00
let obj = styleProperties;
2026-07-29 08:29:29 +00:00
obj = { style: style.styles, children: null };
2026-08-24 06:08:38 +00:00
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" };
2026-07-29 08:29:29 +00:00
({ onPress: obj3[1], accessibilityLabel: obj3[2] } = style);
2026-08-24 06:08:38 +00:00
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" />;
2026-07-20 16:05:17 +00:00
};