@fortawesome/free-solid-svg-icons#faMusic TypeScript Examples

The following examples show how to use @fortawesome/free-solid-svg-icons#faMusic. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: IconLibrary.ts    From react-memory-game with MIT License 6 votes vote down vote up
library.add(
  faChevronLeft,
  faPlay,
  faPause,
  faUndo,
  faClock,
  faQuestionCircle,
  faTimes,
  faPalette,

  // Icons for the game
  faPoo,
  faAnchor,
  faMoon,
  faAppleAlt,
  faBell,
  faBible,
  faBomb,
  faBone,
  faCar,
  faCat,
  faChess,
  faSkull,
  faFeatherAlt,
  faFire,
  faHeart,
  faMusic,
)
Example #2
Source File: helpers.tsx    From sync-party with GNU General Public License v3.0 6 votes vote down vote up
getIconFromFileType = (url: string): IconProp => {
    let icon: IconDefinition;

    if (testMediaType(url) === 'audio') {
        icon = faMusic;
    } else if (testMediaType(url) === 'video') {
        icon = faFilm;
    } else if (getSite(url) === 'youtube') {
        icon = faYoutube;
    } else if (getSite(url) === 'soundcloud') {
        icon = faSoundcloud;
    } else if (getSite(url) === 'twitch') {
        icon = faTwitch;
    } else {
        icon = faFile;
    }

    return icon;
}