mirror of
https://github.com/kremalicious/asi-calculator.git
synced 2024-12-22 17:33:18 +01:00
21 lines
384 B
TypeScript
21 lines
384 B
TypeScript
|
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>
|
||
|
)
|
||
|
}
|