decord/stable/source/modules/media/native/Caption.tsx
github-actions e2bc0408ee chore: update source for stable 346.13
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
2026-09-22 22:11:40 +00:00

38 lines
1.6 KiB
TypeScript

// Module ID: 10780
// Function ID: 10781
// Name: Caption
// Dependencies: [17, 1074, 21, 4636, 576, 4486, 1176, 2]
// Exports: Caption
// Module 10780 (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" /* 1176 */;
import createStyles from "createStyles" /* 4636 */;
import ColorUtils from "ColorUtils" /* 4486 */;
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>;
};