import Box from "@components/bases/Box"; import Text from "@components/bases/Text"; import { images } from "@styles/Commons"; import { useState } from "react"; import { Image, TouchableOpacity } from "react-native"; type Props = { balance: number; label: string }; const BalanceContainer = ({ label, balance }: Props) => { const [showBalance, setShowBalance] = useState(false); return ( setShowBalance(!showBalance)}> {showBalance ? ( {balance} ) : ( )} {label} ); }; export default BalanceContainer;