import { Button, ButtonProps } from 'insomnia-components'; import React, { FunctionComponent } from 'react'; import type { GrpcMethodType } from '../../../network/grpc/method'; import { GrpcMethodTypeEnum } from '../../../network/grpc/method'; interface Props { running: boolean; methodType?: GrpcMethodType; handleStart: () => Promise; handleCancel: () => void; } const buttonProps: ButtonProps = { className: 'tall', bg: 'surprise', size: 'medium', variant: 'contained', radius: '0', }; export const GrpcSendButton: FunctionComponent = ({ running, methodType, handleStart, handleCancel }) => { if (running) { return ( ); } if (!methodType) { return ( ); } return ( ); };