Files
inji-wallet/components/ui/Timestamp.tsx
2025-11-11 02:13:31 +05:30

29 lines
633 B
TypeScript

import React from 'react';
import {View} from 'react-native';
import {Text} from '../ui/Text';
import { formattedDate } from '../../shared/openId4VCI/Utils';
export const Timestamp: React.FC<TimestampProps> = props => {
return (
<View>
<Text
testID={`${props.testId}Time`}
size="regular"
style={{
fontFamily: 'Montserrat_500Medium',
fontWeight: '600',
fontSize: 14,
letterSpacing: 0,
lineHeight: 17,
}}>
{formattedDate(props.time)}
</Text>
</View>
);
};
interface TimestampProps {
time: number;
testId: string;
}