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 starHalfFilled = ( <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"> <path d="M22 9.24l-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4V6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z" /> </svg> ) const StarHalfFilled = ({size}) => <AtomIcon size={size}>{starHalfFilled}</AtomIcon> StarHalfFilled.propTypes = { /** size */ size: PropTypes.oneOf(Object.values(ATOM_ICON_SIZES)) } export default StarHalfFilled |