Repository URL to install this package:
|
Version:
2.0.18 ▾
|
import React from 'react'
import { PaymentWithBillingAddress } from 'abstractions/forms/views/PaymentWithBillingAddress'
import { Empty } from '@skava/ui/dist/components/atoms/Empty'
import { PaymentCard } from '../PaymentCard'
import { PaymentActionTileProps, PaymentActionTileState } from './typings'
function defaultRenderHeaderView(props: PaymentActionTileProps, state: PaymentActionTileState) {
return <PaymentCard state={state} {...props} />
}
function defaultRenderExpandableView(props: PaymentActionTileProps, state: PaymentActionTileState) {
return <PaymentWithBillingAddress {...props} />
}
function defaultRenderFooterView(props: PaymentActionTileProps, state: PaymentActionTileState) {
return <Empty />
}
export {
defaultRenderHeaderView,
defaultRenderExpandableView,
defaultRenderFooterView,
}