laconic-wallet/components/AccountDetails.tsx
Adwait Gharpure a643f9f9b1
Change package name to com.laconic.wallet (#33)
* 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>
2024-03-04 15:20:09 +05:30

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;