<commit_before>import Inferno from 'inferno';
import Component from 'inferno-component';
import Svg from './svg.jsx';
import '../scss/PlayerControls.scss';
import expandSvg from '../svg/expand.svg';
import minimizeSvg from '../svg/minimize.svg';
import nextSvg from '../svg/next.svg';
import pauseSvg from '../svg/pause.svg';
import playSvg from '../svg/play.svg';
import refreshSvg from '../svg/refresh.svg';

export default function PlayerControls(props) {
  const playMethod = props.isPlaying ? props.pause : props.play;
  const playSvg = props.isPlaying ? pauseSvg : playSvg;
  const fullscreenSvg = props.isFullscreen ? minimizeSvg : expandSvg;

  return (
    <div className="PlayerControls" style={ props.style }>
      <button onClick={ props.refresh }>
        <Svg src={ refreshSvg } />
      </button>
      <button onClick={ playMethod }>
        <Svg src={ playSvg } />
      </button>
      <button onClick={ props.skip }>
        <Svg src={ nextSvg } />
      </button>
      <button onClick={ props.toggleFullscreen }>
        <Svg src={ fullscreenSvg } />
      </button>
    </div>
  );
};<commit_msg>kinda want that button<commit_after>import Inferno from 'inferno';
import Component from 'inferno-component';
import Svg from './svg.jsx';
import '../scss/PlayerControls.scss';
import expandSvg from '../svg/expand.svg';
import minimizeSvg from '../svg/minimize.svg';
import nextSvg from '../svg/next.svg';
import pauseSvg from '../svg/pause.svg';
import playSvg from '../svg/play.svg';
import refreshSvg from '../svg/refresh.svg';

export default function PlayerControls(props) {
  return (
    <div className="PlayerControls" style={ props.style }>
      <button onClick={ props.refresh }>
        <Svg src={ refreshSvg } />
      </button>
      <button onClick={ props.isPlaying ? props.pause : props.play }>
        <Svg src={ props.isPlaying ? pauseSvg : playSvg } />
      </button>
      <button onClick={ props.skip }>
        <Svg src={ nextSvg } />
      </button>
      <button onClick={ props.toggleFullscreen }>
        <Svg src={ props.isFullscreen ? minimizeSvg : expandSvg } />
      </button>
    </div>
  );
};
{'fraction_non_alphanumeric': 0.1537028411737308, 'fraction_numerical': 0.0, 'mean_word_length': 3.0451977401129944, 'pattern_counts': {'":': 0, '<': 31, '<?xml version=': 0, '>': 31, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2730710', 'n_tokens_mistral': 673, 'n_tokens_neox': 661, 'n_words': 176}