laconic-wallet/components/Header.tsx
shreerang6921 3d40de966d
Generate wallet and sign message (#4)
* Store mnemonic and private key seperately

* Change variable names

* Refactor code in seperate components

* Display wallet details

* Remove unnecessary imports

* Make review changes

* Add method to reset wallet

* Make component self closing

* separate imports

---------

Co-authored-by: Adw8 <adwait@deepstacksoft.com>
2024-02-08 18:42:30 +05:30

24 lines
527 B
TypeScript

import React from 'react';
import { View, Text, useColorScheme } from 'react-native';
import { Colors } from 'react-native/Libraries/NewAppScreen';
import styles from '../styles/stylesheet';
const Header = () => {
const isDarkMode = useColorScheme() === 'dark';
return (
<View style={styles.headerContainer}>
<Text
style={[
styles.headerText,
{color: isDarkMode ? Colors.light : Colors.dark},
]}>
Laconic Wallet
</Text>
</View>
);
};
export { Header };