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

36 lines
1.4 KiB
TypeScript
Raw Normal View History

// Module ID: 10656
// Function ID: 10657
2026-07-20 16:05:17 +00:00
// Name: Caption
// Dependencies: [17, 1074, 21, 4560, 576, 4409, 1178, 2]
2026-07-20 16:05:17 +00:00
// Exports: Caption
// Module 10656 (Caption)
2026-08-24 06:08:38 +00:00
import set from "set" /* 2 */;
import get_ActivityIndicator from "get ActivityIndicator" /* 17 */;
import jsxProd from "jsxProd" /* 21 */;
import ThemesDefault from "Themes" /* 576 */;
import ME from "ME" /* 1074 */;
import Button from "Button" /* 1178 */;
import createCacheKey from "createCacheKey" /* 4560 */;
import hexToRgba from "hexToRgba" /* 4409 */;
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
const View = get_ActivityIndicator.View;
const jsx = jsxProd.jsx;
2026-07-29 08:29:29 +00:00
let obj = { captionText: null, labelContainer: null };
2026-08-24 06:08:38 +00:00
obj = { fontFamily: ME.Fonts.PRIMARY_BOLD, color: ThemesDefault.colors.WHITE, fontSize: 12 };
2026-07-29 08:29:29 +00:00
obj[0] = obj;
2026-07-23 10:11:24 +00:00
const obj1 = { backgroundColor: null, borderRadius: null, paddingHorizontal: 8, paddingVertical: 2, position: "absolute", right: 6, bottom: 6 };
2026-08-24 06:08:38 +00:00
obj1[0] = hexToRgba.hexWithOpacity(ThemesDefault.unsafe_rawColors.PRIMARY_700, 0.5);
obj1[1] = ThemesDefault.radii.xs;
2026-07-29 08:29:29 +00:00
obj[1] = obj1;
let closure_4 = createCacheKey.createStyles(obj);
2026-08-24 06:08:38 +00:00
const result = set.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 = callback();
const items = [tmp.labelContainer, style];
const items1 = [tmp.captionText, textStyle];
2026-08-24 06:08:38 +00:00
return <View style={items}>{jsx(Button.LegacyText, { style: items1, children: label })}</View>;
2026-07-20 16:05:17 +00:00
};