2
0

feat(editor): Payment input

This commit is contained in:
Baptiste Arnaud
2022-05-24 14:25:15 -07:00
parent 91ea637a08
commit 3a6ca3dbde
35 changed files with 1516 additions and 52 deletions

View File

@ -0,0 +1,20 @@
import { Text } from '@chakra-ui/react'
import { PaymentInputStep } from 'models'
type Props = {
step: PaymentInputStep
}
export const PaymentInputContent = ({ step }: Props) => {
if (
!step.options.amount ||
!step.options.credentialsId ||
!step.options.currency
)
return <Text color="gray.500">Configure...</Text>
return (
<Text noOfLines={0} pr="6">
Collect {step.options.amount} {step.options.currency}
</Text>
)
}