import React from "react"; import { Button, Tooltip, Dialog, Classes, Colors } from "@blueprintjs/core"; class AnnoDialog extends React.PureComponent { constructor(props) { super(props); this.state = {}; } render() { const { isActive, text, title, instruction, cancelTooltipContent, errorMessage, validationError, annoSelect, annoInput, secondaryInstructions, secondaryInput, handleCancel, handleSubmit, primaryButtonText, secondaryButtonText, handleSecondaryButtonSubmit, primaryButtonProps, } = this.props; return (
{ e.preventDefault(); }} >

{instruction}

{annoInput || null}

{errorMessage}

{/* we might rename, secondary button and secondary input are not related */} {secondaryInstructions && (

{secondaryInstructions}

)} {secondaryInput || null}
{annoSelect || null}
{/* we might rename, secondary button and secondary input are not related */} {handleSecondaryButtonSubmit && secondaryButtonText ? ( ) : null}
); } } export default AnnoDialog;