/* eslint-disable @typescript-eslint/no-explicit-any */ import { BaseProps } from "../../Factory/BaseType"; import FactoryRenderer from "../../Renderer"; import InformationIllustration from "./InformationIllustration"; type InformationAlertViewProps = BaseProps & { messageHeader?: string; messageBody?: string; iconUrl?: string; iconName?: string; confirmText?: string; onConfirm: () => void; }; const InformationAlertView = (props: InformationAlertViewProps) => { return ( // The DIALOG widget owns the styling host: it renders id / className / // data-prc-col-important / inline on one element *inside* the dialog // content, which is what travels with Kendo's portal. `title` stays unset — // passing it would make Kendo render a titlebar this alert never had, and // the close affordance is the footer button, not a titlebar icon.
{props.iconUrl ? ( ) : props.iconName ? ( ) : ( )}

{props.messageHeader}

{props.messageBody ? (

{props.messageBody}

) : null}
); }; export default InformationAlertView;