import React from "react"; import styled from "styled-components"; import { HistoryNode } from "../../../schema/HistoryNode"; import { defaultBorderRadius, vscBackground } from "."; import HeaderButtonWithText from "./HeaderButtonWithText"; import { MinusCircleIcon, MinusIcon, XMarkIcon, } from "@heroicons/react/24/outline"; const Div = styled.div` padding: 8px; background-color: #ff000011; border-radius: ${defaultBorderRadius}; border: 1px solid #cc0000; margin: 8px; `; interface ErrorStepContainerProps { historyNode: HistoryNode; onClose: () => void; onDelete: () => void; } function ErrorStepContainer(props: ErrorStepContainerProps) { return (
{props.historyNode.observation?.error as string}