Learn more  » Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Bower components Debian packages RPM packages NuGet packages

skava / @skava/ui   js

Repository URL to install this package:

Version: 4.2.0-a11y.0 

/ src / components / molecules / Telephone / renderProps.tsx

import React from 'react'
import { MaterialIcon } from 'atoms/MaterialIcon'
import { StyledTelephoneValue } from './styled'
import { TelephoneAttributesOrProps } from './typings'

function renderIcon(props: TelephoneAttributesOrProps) {
  return props.shouldUseIcon && <MaterialIcon type="call" key="telephoneicon" />
}

function renderValue(props: TelephoneAttributesOrProps) {
  return <StyledTelephoneValue {...props} />
}

export { renderIcon, renderValue }