import React from 'react'; import { View, Text, StyleSheet } from 'react-native'; import { useTheme } from '../../app/contexts/ThemeContext'; interface StatsBudgetProps { spent: number; budget: number; } const BudgetOverview: React.FC = ({ spent, budget }) => { const { colors } = useTheme(); 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 spent {spent.toFixed(2)}€ out of your budget of {budget.toFixed(2)}€. ); }; export default BudgetOverview