import * as React from "react"; import { SpacingBox } from "../../styleUtils/modifiers"; import { HeadingText2 } from "../../styleUtils/typography"; import { MessagePanelProps } from "./MessagePanel"; import MessagePanelActions from "./MessagePanelActions"; import { messagePanelGraphic, messagePanelWithGraphicBody } from "../style"; interface GraphicDimensions { width?: number; height?: number; } interface MessagePanelWithGraphicProps extends MessagePanelProps { /** * The source of the image that appears in the empty state */ graphicSrc: string; /** * The expected width and/or height dimensions of the graphic */ graphicDimensions?: GraphicDimensions; /** * Human-readable selector used for writing tests */ "data-cy"?: string; /** * Allows custom styling */ className?: string; } const MessagePanelWithGraphic = ({ className, graphicSrc, graphicDimensions, heading, children, primaryAction, secondaryAction, "data-cy": dataCy = "messagePanelWithGraphic" }: MessagePanelWithGraphicProps) => { const hasActions = primaryAction || secondaryAction; return (