decord/alpha/source/modules/media/native/Caption.tsx

39 lines
1.6 KiB
TypeScript
Raw Normal View History

// Module ID: 10917
// Function ID: 10918
2026-07-20 16:05:17 +00:00
// Name: Caption
// Dependencies: [17, 1074, 21, 4757, 576, 4606, 1177, 2]
2026-07-20 16:05:17 +00:00
// Exports: Caption
// Module 10917 (Caption)
import _mod17 from "module_17" /* 17 */;
2026-08-24 06:08:38 +00:00
import jsxProd from "jsxProd" /* 21 */;
import nativeDefault from "native" /* 576 */;
import Constants from "Constants" /* 1074 */;
import native from "native" /* 1177 */;
import createStyles from "createStyles" /* 4757 */;
import ColorUtils from "ColorUtils" /* 4606 */;
import size from "module_2" /* 2 */;
2026-07-23 10:11:24 +00:00
const View = _mod17.View;
2026-08-24 06:08:38 +00:00
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");
2026-07-20 16:05:17 +00:00
export const Caption = function Caption(arg0) {
({ label, style, textStyle } = arg0);
const tmp = closure_4();
const obj = { style: null, children: null };
2026-07-20 16:05:17 +00:00
const items = [tmp.labelContainer, style];
obj.style = items;
const obj2 = { style: null, children: label };
2026-07-20 16:05:17 +00:00
const items1 = [tmp.captionText, textStyle];
obj2.style = items1;
obj.children = jsx(native.LegacyText, { style: null, children: label });
return <View style={null}>{null}</View>;
2026-07-20 16:05:17 +00:00
};