UNPKG

pretty-rating-react

Version:

Pretty rating formatter with React FontAwesome icons

9 lines (8 loc) 311 B
export var customStyles = function (_a) { var current = _a.current, icons = _a.icons, colors = _a.colors, type = _a.type; return current === icons.complete && type === 'complete' ? colors[0] : current === icons.half && type === 'half' ? colors[1] : colors[2]; };