import { StyleSheet } from 'react-native';
import { Text, View } from '@/components/Themed';
import TransactionAdd from '@/components/transaction/TransactionAdd';
import { useState } from 'react';

export default function TabTwoScreen() {
  const [refreshKey, setRefreshKey] = useState(0);
  const handleTransactionAdded = () => {
    setRefreshKey(oldKey => oldKey + 1);
  };

  return (
    <View>
      <TransactionAdd onTransactionAdded={handleTransactionAdded} />
    </View>
  );
}

const styles = StyleSheet.create({
});
