decord/stable/source/modules/media/native/Caption.tsx
github-actions 57c2214117 chore: update source for stable 347.12
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4973.js (118.4 MB)
2026-09-29 21:26:22 +00:00

38 lines
1.6 KiB
TypeScript

// Module ID: 10947
// Function ID: 10948
// Name: Caption
// Dependencies: [17, 1074, 21, 4788, 576, 4637, 1177, 2]
// Exports: Caption
// Module 10947 (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" /* 4788 */;
import ColorUtils from "ColorUtils" /* 4637 */;
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>;
};