decord/source/modules/markup/Timestamp.native.tsx
github-actions f0f877e8ce chore: update source for alpha 347.1
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4824.js (118.4 MB)
2026-09-15 14:23:42 +00:00

37 lines
1.2 KiB
TypeScript

// Module ID: 10259
// Function ID: 10260
// Name: Timestamp
// Dependencies: [19, 21, 4639, 576, 10260, 1177, 4338, 2]
// Exports: default
// Module 10259 (Timestamp)
import nativeDefault from "native" /* 576 */;
import ToastActionCreatorsDefault from "ToastActionCreators" /* 4338 */;
import useFormattedTimestampDefault from "useFormattedTimestamp" /* 10260 */;
import noop from "module_19" /* 19 */;
const require = fn;
const jsx = fn(21).jsx;
const createStyles = fn(4639);
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)
});
};