import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import * as React from 'react'; import { RunnerInformation } from 'util/datatypes/RunnerList'; import style from './Runner.module.scss'; export default function Runner({ runner }: { runner: RunnerInformation }) { return ( {runner.name} {runner.platform === 'TWITCH' && runner.stream.length > 0 ? ( ) : ''} {runner.platform === 'FACEBOOK' && runner.stream.length > 0 ? ( ) : ''} {runner.platform === 'YOUTUBE' && runner.stream.length > 0 ? ( ) : ''} {runner.twitter && runner.twitter.length > 0 ? ( ) : ''} {runner.youtube && runner.youtube.length > 0 ? ( ) : ''} ); }