decord/source/modules/markup/Timestamp.native.tsx

38 lines
1.2 KiB
TypeScript
Raw Normal View History

// Module ID: 10257
// Function ID: 10258
2026-07-20 16:05:17 +00:00
// Name: Timestamp
// Dependencies: [19, 21, 4636, 576, 10258, 1178, 4335, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
// Module 10257 (Timestamp)
import nativeDefault from "native" /* 576 */;
import ToastActionCreatorsDefault from "ToastActionCreators" /* 4335 */;
import useFormattedTimestampDefault from "useFormattedTimestamp" /* 10258 */;
import noop from "module_19" /* 19 */;
2026-07-23 10:11:24 +00:00
const require = fn;
const jsx = fn(21).jsx;
const createStyles = fn(4636);
const obj2 = { timestamp: { color: nativeDefault.colors.TEXT_DEFAULT, backgroundColor: nativeDefault.colors.BORDER_SUBTLE } };
let closure_4 = createStyles.createStyles(obj2);
const size = fn(2);
const result = size.fileFinishedImporting("modules/markup/Timestamp.native.tsx");
2026-07-20 16:05:17 +00:00
export default function Timestamp(node) {
node = node.node;
const tmp = closure_4();
2026-07-29 08:29:29 +00:00
let style = tmp.timestamp;
if (style == null) {
style = node.style;
2026-07-20 16:05:17 +00:00
}
const tmp2 = useFormattedTimestampDefault(node);
2026-07-29 08:29:29 +00:00
const tmp3 = jsx;
return tmp3(node(1178).LegacyText, {
2026-07-29 08:29:29 +00:00
style,
onPress() {
ToastActionCreatorsDefault.open({ key: "TIMESTAMP", content: node.full });
2026-07-29 08:29:29 +00:00
},
children: useFormattedTimestampDefault(node)
2026-07-29 08:29:29 +00:00
});
2026-07-20 16:05:17 +00:00
};