decord/beta/source/modules/markup/Timestamp.native.tsx
github-actions 84d017ff78 chore: update source for beta 348.6
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/05xxx/module_5021.js (118.4 MB)
2026-09-28 16:18:32 +00:00

37 lines
1.2 KiB
TypeScript

// Module ID: 9588
// Function ID: 9589
// Name: Timestamp
// Dependencies: [19, 21, 4836, 576, 9589, 1177, 4528, 2]
// Exports: default
// Module 9588 (Timestamp)
import nativeDefault from "native" /* 576 */;
import ToastActionCreatorsDefault from "ToastActionCreators" /* 4528 */;
import useFormattedTimestampDefault from "useFormattedTimestamp" /* 9589 */;
import noop from "module_19" /* 19 */;
const require = fn;
const jsx = fn(21).jsx;
const createStyles = fn(4836);
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");
export default function Timestamp(node) {
node = node.node;
const tmp = closure_4();
let style = tmp.timestamp;
if (style == null) {
style = node.style;
}
const tmp2 = useFormattedTimestampDefault(node);
const tmp3 = jsx;
return tmp3(node(1177).LegacyText, {
style,
onPress() {
ToastActionCreatorsDefault.open({ key: "TIMESTAMP", content: node.full });
},
children: useFormattedTimestampDefault(node)
});
};