decord/source/modules/checkpoint/native/components/CheckpointButton.tsx
github-actions 03cf168fbc chore: update source for alpha 347.3
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4825.js (118.4 MB)
2026-09-17 08:17:09 +00:00

45 lines
2.3 KiB
TypeScript

// Module ID: 15816
// Function ID: 15817
// Name: CheckpointButton
// Dependencies: [17, 4866, 21, 4640, 576, 15814, 2]
// Exports: default
// Module 15816 (CheckpointButton)
import nativeDefault from "native" /* 576 */;
import CheckpointTextDefault from "CheckpointText" /* 15814 */;
import get_ActivityIndicator from "module_17" /* 17 */;
import CheckpointConstants from "CheckpointConstants" /* 4866 */;
import jsxProd from "jsxProd" /* 21 */;
import createStyles from "createStyles" /* 4640 */;
import size from "module_2" /* 2 */;
({ Pressable: c2, View: c3 } = get_ActivityIndicator);
({ CHECKPOINT_PRIMARY: closure_4, CHECKPOINT_BUTTON_BORDER, CHECKPOINT_BUTTON_SHADOW } = CheckpointConstants);
({ jsx: hasOwnProperty, jsxs: metroRequire } = jsxProd);
let obj = { container: { justifyContent: "center", marginRight: -4, marginBottom: -4, paddingRight: 4, paddingBottom: 4 }, backdrop: { position: "absolute", top: 4, left: 4, right: 0, bottom: 0, backgroundColor: CHECKPOINT_BUTTON_SHADOW }, button: { flexDirection: "row", alignItems: "center", justifyContent: "center", gap: nativeDefault.space.PX_8, backgroundColor: nativeDefault.colors.BLACK, borderWidth: 2, borderColor: CHECKPOINT_BUTTON_BORDER, height: 48 }, label: { textTransform: "uppercase" } };
let closure_7 = createStyles.createStyles(obj);
const result = size.fileFinishedImporting("modules/checkpoint/native/components/CheckpointButton.tsx");
export default function CheckpointButton(onPress) {
({ Icon, label } = onPress);
const tmp = closure_7();
const obj = { style: tmp.container, children: null };
const items = [hasOwnProperty(React3, { style: tmp.backdrop }), ];
const obj3 = { style: tmp.button, onPress: onPress.onPress, accessibilityRole: "button", accessibilityLabel: label, children: null };
let tmp4Result = null != Icon;
if (tmp4Result) {
const obj4 = { color, size: "sm" };
tmp4Result = tmp4(Icon, obj4);
}
const items1 = [tmp4Result, ];
let tmp4Result2 = null != label;
if (tmp4Result2) {
const obj5 = { variant: "text-lg/medium", style: tmp.label, children: label };
tmp4Result2 = tmp4(CheckpointTextDefault, obj5);
}
items1[1] = tmp4Result2;
obj3.children = items1;
items[1] = timestampProducer(React2, obj3);
obj.children = items;
return timestampProducer(React3, obj);
};