All files / molecule/rating/src/Icons starFilled.js

75% Statements 3/4
100% Branches 0/0
0% Functions 0/1
100% Lines 3/3

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21              1x         1x   1x            
import React from 'react'
 
import PropTypes from 'prop-types'
 
import AtomIcon, {ATOM_ICON_SIZES} from '@s-ui/react-atom-icon'
 
const starFilled = (
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
    <path d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z" />
  </svg>
)
 
const StarFilled = ({size}) => <AtomIcon size={size}>{starFilled}</AtomIcon>
 
StarFilled.propTypes = {
  /** size */
  size: PropTypes.oneOf(Object.values(ATOM_ICON_SIZES))
}
 
export default StarFilled