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 / _circularRenderProp.tsx
Size: Mime:
import React from 'react'
import { SelectableState } from 'src/state/SelectionState'
import { SelectProps } from '../typings'
import { Option } from './Option'
import { OptionProps, OptionState, OptionType } from './typings'

export function renderItem(
  item: OptionType,
  props: SelectProps,
  state: SelectableState
) {
  console.debug('[Option] renderItem')
  console.log('[Component] Options circularRenderProps', item, props)

  return <Option {...item} {...props} label={item.label} value={item.label} />
}