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 / src / components / molecules / PhysicalAddress / PhysicalAddress.tsx
Size: Mime:
import React from 'react'
import { EMPTY_OBJ } from 'exotic'
import { PhysicalAddressProps } from './typings'
import { defaultRenderDetails, defaultRenderWrapper } from './renderProps'

class PhysicalAddress extends React.PureComponent<PhysicalAddressProps> {
  static defaultProps = {
    className: '',
    address: EMPTY_OBJ,
    renderDetails: defaultRenderDetails,
    renderWrapper: defaultRenderWrapper,
  }
  render() {
    const { renderWrapper, renderDetails, ...remainingProps } = this.props
    const children = renderDetails(remainingProps)
    const view = renderWrapper({ ...remainingProps, children })
    return view
  }
}

export { PhysicalAddress }
export default PhysicalAddress