Repository URL to install this package:
|
Version:
0.14.1 ▾
|
ui-component-library
/
src
/
components
/
presets
/
Checkout
/
ShippingMethodOption
/
renderProps.tsx
|
|---|
import React from 'react'
import { ShippingMethodOptionItemProps } from './typings'
import {
ShippingTypeLabel,
ExpectedDeliveryText,
StyledOptionsWrapper,
} from './styled'
function defaultRenderText(props: ShippingMethodOptionItemProps) {
const { label } = props
return (
<StyledOptionsWrapper>
<ShippingTypeLabel content={label.shippingType} />
<ExpectedDeliveryText>{label.expectedDelivery}</ExpectedDeliveryText>
</StyledOptionsWrapper>
)
}
export { defaultRenderText }