mars-v2-frontend/src/components/Account/CreateAccount.tsx
Yusuf Seyrek ee20c2fde2
feat: finalize button component with tests (#224)
* feat: finalize button component with tests

* fix: import

* fix: import
2023-05-24 16:07:08 +03:00

29 lines
777 B
TypeScript

import Button from 'components/Button'
import { ArrowRight } from 'components/Icons'
import Text from 'components/Text'
interface Props {
isCreating: boolean
createAccount: () => void
}
export default function CreateAccount(props: Props) {
return (
<div className='relative z-10 w-full p-4'>
<Text size='lg' className='mb-2 font-bold'>
Create a Credit Account
</Text>
<Text className='mb-4 text-white/70'>
Please approve the transaction in your wallet in order to create your first Credit Account.
</Text>
<Button
className='w-full'
showProgressIndicator={props.isCreating}
text='Create Account'
rightIcon={<ArrowRight />}
onClick={props.createAccount}
/>
</div>
)
}