Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
@skava/ui-presets / src / presets / PaymentMethod / List / renderProps.tsx
Size: Mime:
import React from 'react'
import { PaymentActionTile } from '../Item/PaymentActionTile'
import { PaymentItemProps } from './typings'

function defaultRenderText(props: PaymentItemProps) {
  const { label, onClick, ...remainingProps } = props
  const handlePaymentChange = onClick

  return (
    <PaymentActionTile
      paymentCardDetails={label}
      onPaymentChange={handlePaymentChange}
      {...remainingProps}
    />
  )
}

export { defaultRenderText }