mirror of
https://github.com/mosip/inji-wallet.git
synced 2026-01-09 05:27:57 -05:00
29 lines
624 B
TypeScript
29 lines
624 B
TypeScript
import React from 'react';
|
|
import { useTranslation } from 'react-i18next';
|
|
import { TextItem } from './ui/TextItem';
|
|
|
|
export const DeviceInfoList: React.FC<DeviceInfoProps> = (props) => {
|
|
const { t } = useTranslation('DeviceInfoList');
|
|
|
|
return (
|
|
<React.Fragment>
|
|
<TextItem
|
|
divider
|
|
label={props.of === 'receiver' ? t('requestedBy') : t('sentBy')}
|
|
text={t(props.deviceInfo.deviceName)}
|
|
/>
|
|
</React.Fragment>
|
|
);
|
|
};
|
|
|
|
interface DeviceInfoProps {
|
|
deviceInfo: DeviceInfo;
|
|
of?: string;
|
|
}
|
|
|
|
export interface DeviceInfo {
|
|
deviceName: string;
|
|
name: string;
|
|
deviceId: string;
|
|
}
|