import React, { Component, PropTypes } from 'react'; import Button from '../button'; import Icon from '../icon'; function noop() { } class TransferOperation extends Component { render() { const { moveToLeft, moveToRight, leftArrowText, rightArrowText, leftActive, rightActive, prefixCls, } = this.props; const moveToLeftButton = ( ); const moveToRightButton = ( ); return
{moveToLeftButton} {moveToRightButton}
; } } TransferOperation.defaultProps = { prefixCls: 'ant-transfer-operation', leftArrowText: '', rightArrowText: '', moveToLeft: noop, moveToRight: noop, }; TransferOperation.propTypes = { prefixCls: PropTypes.string, leftArrowText: PropTypes.string, rightArrowText: PropTypes.string, moveToLeft: PropTypes.func, moveToRight: PropTypes.func, }; export default TransferOperation;