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; } const MessagePanelWithGraphic = ({ graphicSrc, graphicDimensions, heading, children, primaryAction, secondaryAction }: MessagePanelWithGraphicProps) => { const hasActions = primaryAction || secondaryAction; return (