import * as React from 'react'; import LeftOutlined from '@ant-design/icons/LeftOutlined'; import RightOutlined from '@ant-design/icons/RightOutlined'; import Button from '../button'; import type { DirectionType } from '../config-provider'; export interface TransferOperationProps { className?: string; leftArrowText?: string; rightArrowText?: string; moveToLeft?: React.MouseEventHandler; moveToRight?: React.MouseEventHandler; leftActive?: boolean; rightActive?: boolean; style?: React.CSSProperties; disabled?: boolean; direction?: DirectionType; oneWay?: boolean; } const Operation = ({ disabled, moveToLeft, moveToRight, leftArrowText = '', rightArrowText = '', leftActive, rightActive, className, style, direction, oneWay, }: TransferOperationProps) => (
{!oneWay && ( )}
); export default Operation;