import React from 'react'; import { Text, StyleSheet } from 'react-native'; import { useTheme } from '../../app/contexts/ThemeContext'; interface BudgetRemainingProps { budget: number; spent: number; } const BudgetRemaining: React.FC = ({ budget, spent }) => { const { colors, theme } = useTheme(); const remaining = budget - spent; const styles = StyleSheet.create({ container: { margin: 10, borderRadius: 5, alignItems: 'center', justifyContent: 'center', }, text: { fontSize: 26, color: colors.primaryText, }, boldText: { fontWeight: 'bold', }, }); return ( You have {remaining.toFixed(2)}€ left. ); }; export default BudgetRemaining;