import React from 'react';
import { IconButton } from 'patd';

export default ({
  moveToRight, moveToLeft, leftActive, rightActive, style,
}) => (
    <div className="transfer-operation" style={style}>
      <IconButton disabled={!leftActive} size="xs" icon="fa fa-angle-left" onClick={moveToLeft} />
      <IconButton disabled={!rightActive} size="xs" icon="fa fa-angle-right" onClick={moveToRight} />
    </div>
  );
