decord/alpha/source/modules/media/native/Caption.tsx
github-actions c6aa9eb120 chore: update source for alpha 349.3
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/05xxx/module_5030.js (118.4 MB)
2026-10-01 06:55:13 +00:00

38 lines
1.6 KiB
TypeScript

// Module ID: 10307
// Function ID: 10308
// Name: Caption
// Dependencies: [17, 1074, 21, 4845, 576, 4712, 1177, 2]
// Exports: Caption
// Module 10307 (Caption)
import _mod17 from "module_17" /* 17 */;
import jsxProd from "jsxProd" /* 21 */;
import nativeDefault from "native" /* 576 */;
import Constants from "Constants" /* 1074 */;
import native from "native" /* 1177 */;
import createStyles from "createStyles" /* 4845 */;
import ColorUtils from "ColorUtils" /* 4712 */;
import size from "module_2" /* 2 */;
const View = _mod17.View;
const jsx = jsxProd.jsx;
let obj = { captionText: { fontFamily: Constants.Fonts.PRIMARY_BOLD, color: nativeDefault.colors.WHITE, fontSize: 12 }, labelContainer: null };
const rect = { backgroundColor: null, borderRadius: null, paddingHorizontal: 8, paddingVertical: 2, position: "absolute", right: 6, bottom: 6 };
rect.backgroundColor = ColorUtils.hexWithOpacity(nativeDefault.unsafe_rawColors.PRIMARY_700, 0.5);
rect.borderRadius = nativeDefault.radii.xs;
obj.labelContainer = rect;
let closure_4 = createStyles.createStyles(obj);
const result = size.fileFinishedImporting("modules/media/native/Caption.tsx");
export const Caption = function Caption(arg0) {
({ label, style, textStyle } = arg0);
const tmp = closure_4();
const obj = { style: null, children: null };
const items = [tmp.labelContainer, style];
obj.style = items;
const obj2 = { style: null, children: label };
const items1 = [tmp.captionText, textStyle];
obj2.style = items1;
obj.children = jsx(native.LegacyText, { style: null, children: label });
return <View style={null}>{null}</View>;
};