asi-calculator/components/FormAmount.tsx

21 lines
384 B
TypeScript
Raw Normal View History

2024-03-29 22:54:07 +01:00
import styles from './FormAmount.module.css'
export function FormAmount({
amount,
setAmount
}: {
amount: number
setAmount: (amount: number) => void
}) {
return (
<form className={styles.form}>
<input
className={styles.input}
type="text"
value={amount}
onChange={(e) => setAmount(Number(e.target.value))}
/>
</form>
)
}