All files / Select/renderers OptionRenderer.js

100% Statements 3/3
100% Branches 0/0
100% Functions 0/0
100% Lines 3/3
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 241x 1x     20x                                      
import React from 'react'
import SelectOption from '../partials/SelectOption'
 
export default (option, index) => {
  return (
    <SelectOption
      id={option.id}
      className={option.className}
      key={index}
      isSelected={option.isSelected}
      aria-selected={option.isSelected}
      tabIndex={option.tabIndex}
      isFocused={option.isFocused}
      data-key={option['data-key']}
      role="option"
      data-select-option={option.value}
      onMouseOut={option.onMouseOut}
      onMouseOver={option.onMouseOver}
      onMouseDown={option.onMouseDown}>
      {option.label}
    </SelectOption>
  )
}