import { InputNumber } from 'antd' import { useState } from 'react' import { Button } from '../../elements/Button' import '../../scss/transaction-modal.scss' type Props = { stackId: string } export const TransactionForm = ({ stackId }: Props) => { const [amount, setAmount] = useState(0) const [stack, setStack] = useState(stackId) const [details, setDetails] = useState('') const handleSubmit = (e: React.FormEvent) => { e.preventDefault() if (!amount) return const body = { stack, details, amount: amount, created_at: new Date().toISOString(), } console.log('creating tx', body) } return (
X

Expense for {stack} account

) }