mirror of
https://github.com/kremalicious/asi-calculator.git
synced 2024-12-22 17:33:18 +01:00
27 lines
687 B
TypeScript
27 lines
687 B
TypeScript
import { InputAmount } from '@/components/FormAmount/Inputs/InputAmount'
|
|
import { InputToken } from './Inputs/InputToken'
|
|
import styles from './FormAmount.module.css'
|
|
import { Dispatch, SetStateAction } from 'react'
|
|
import { Token } from './types'
|
|
|
|
export function FormAmount({
|
|
amount,
|
|
setAmount,
|
|
token,
|
|
setToken,
|
|
isFiat
|
|
}: {
|
|
amount: number
|
|
setAmount: Dispatch<SetStateAction<number>>
|
|
token: Token | string
|
|
setToken?: Dispatch<SetStateAction<Token>>
|
|
isFiat?: boolean
|
|
}) {
|
|
return (
|
|
<form className={styles.form}>
|
|
<InputAmount amount={amount} setAmount={setAmount} />
|
|
<InputToken token={token} setToken={setToken} isFiat={isFiat} />
|
|
</form>
|
|
)
|
|
}
|