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 / SelectDropDown / Option / renderProps.tsx
Size: Mime:
import React from 'react'
import { toText } from '../meta/_deps'
import { SelectText } from './styled'
import { OptionProps, OptionState, OptionType } from './typings'

export function defaultRenderText(props: OptionProps, state: OptionState) {
  const text = toText(props, state)
  return (
    <SelectText isSelected={props.isSelected} isDisabled={props.isDisabled}>
      {text}
    </SelectText>
  )
}

export function defaultRenderBeforeText(
  props: OptionProps,
  state: OptionState
) {
  return ''
}