forked from cerc-io/laconic-wallet
* Change package name * Refactor folder structure * Remove older instances of file * Change name in app.json * Make address selectable --------- Co-authored-by: Adw8 <adwait@deepstacksoft.com>
32 lines
861 B
TypeScript
32 lines
861 B
TypeScript
import React from 'react';
|
|
import { View } from 'react-native';
|
|
import { Text } from 'react-native-paper';
|
|
|
|
import { Account } from '../types';
|
|
import styles from '../styles/stylesheet';
|
|
|
|
interface AccountDetailsProps {
|
|
account: Account | undefined;
|
|
}
|
|
|
|
const AccountDetails: React.FC<AccountDetailsProps> = ({ account }) => {
|
|
return (
|
|
<View style={styles.accountContainer}>
|
|
<Text variant="bodyLarge" selectable={true}>
|
|
<Text style={styles.highlight}>Address: </Text>
|
|
{account?.address}
|
|
</Text>
|
|
<Text variant="bodyLarge" selectable={true}>
|
|
<Text style={styles.highlight}>Public Key: </Text>
|
|
{account?.pubKey}
|
|
</Text>
|
|
<Text variant="bodyLarge">
|
|
<Text style={styles.highlight}>HD Path: </Text>
|
|
{account?.hdPath}
|
|
</Text>
|
|
</View>
|
|
);
|
|
};
|
|
|
|
export default AccountDetails;
|