import React from 'react';
import { Button } from '@arco-design/web-react';
import { IconSend } from '@arco-design/web-react/icon';

interface HandlerBarProps {
  onPublish?: () => void;
  isRunning?: boolean;
}

const HandlerBar: React.FC<HandlerBarProps> = ({ onPublish, isRunning }) => {
  return (
    <div className="handlex-bar" style={{ paddingRight: 50 }}>
      <div className="handlex-bar-item">
        <Button
          type="primary"
          shape="round"
          onClick={onPublish}
          disabled={isRunning}
        >
          <IconSend />
          流程发布
        </Button>
      </div>
    </div>
  );
};

export default HandlerBar;