45 lines
2.9 KiB
TypeScript
45 lines
2.9 KiB
TypeScript
/* Metro module 10990; source: modules/markup/Timestamp.native.tsx; dependencies: [31, 33, 4501, 697, 10991, 1305, 3857, 2] */
|
|
import Native from '../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
|
|
import ToastActionCreators from '../toast/native/ToastActionCreators.tsx'; /* Metro dependency 3857 */
|
|
import UseFormattedTimestamp from './useFormattedTimestamp.tsx'; /* Metro dependency 10991 */
|
|
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as ReactModule from '../../by-id/module-00031-React.js'; /* Metro dependency 31 */
|
|
import * as JsxRuntimeModule from '../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
|
|
import * as NativeModule from '../../design/void/native.tsx'; /* Metro dependency 1305 */
|
|
import * as CreateStylesModule from '../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
|
|
|
|
function _fun84105(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#84105, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11176:6, offset: 0x01f393b4, size: 224 bytes, params: 8, frame: 22
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
ReactModule;
|
|
const createStyles = CreateStylesModule.createStyles;
|
|
const object2 = {};
|
|
const TEXT_DEFAULT = (Native).colors.TEXT_DEFAULT;
|
|
object2.color = TEXT_DEFAULT;
|
|
const BORDER_SUBTLE = (Native).colors.BORDER_SUBTLE;
|
|
object2.backgroundColor = BORDER_SUBTLE;
|
|
const env0_4 = Reflect.apply(createStyles, CreateStylesModule, [{timestamp: object2}]);
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/markup/Timestamp.native.tsx');
|
|
exports.default = Timestamp;
|
|
function Timestamp({node, style}) { // fn#84106, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11176:314, offset: 0x01f39494, size: 128 bytes, params: 2, frame: 18
|
|
const styles = useStyles();
|
|
const value2 = (UseFormattedTimestamp)(node);
|
|
const LegacyText = (NativeModule).LegacyText;
|
|
return (
|
|
<LegacyText style={styles.timestamp ?? style} onPress={onPress_84107}>
|
|
{value2}
|
|
</LegacyText>
|
|
);
|
|
function TimestampOnPress() { // fn#84107, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11176:445, owner: Timestamp.onPress, offset: 0x01f39514, size: 65 bytes, params: 1, frame: 13
|
|
const value = environment.__proto__;
|
|
(ToastActionCreators).open({key: 'TIMESTAMP', content: node.full});
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun84105, 10990, [31, 33, 4501, 697, 10991, 1305, 3857,
|
|
2]) /* metro module 10990, dependencies: [31, 33, 4501, 697, 10991, 1305, 3857, 2] */;
|