MCPcopy
hub / github.com/watsonbox/exportify / renderIcon

Method renderIcon

src/components/PlaylistRow.tsx:44–50  ·  view source on GitHub ↗
(playlist: any)

Source from the content-addressed store, hash-verified

42 }
43
44 renderIcon(playlist: any) {
45 if (playlist.name === 'Liked') {
46 return <FontAwesomeIcon icon={['far', 'heart']} style={{ color: 'red' }} />;
47 } else {
48 return <FontAwesomeIcon icon={['fas', 'music']} />;
49 }
50 }
51
52 render() {
53 let playlist = this.props.playlist

Callers 1

renderMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected