/* eslint-disable @typescript-eslint/no-explicit-any */ import { BaseProps } from "../../Factory/BaseType"; import FactoryRenderer from "../../Renderer"; import ConfirmationIllustration from "./ConfirmationIllustration"; type ConfirmationAlertViewProps = BaseProps & { messageHeader?: string; messageBody?: string; iconUrl?: string; iconName?: string; confirmText?: string; cancelText?: string; onConfirm: () => void; onCancel: () => void; }; const ConfirmationAlertView = (props: ConfirmationAlertViewProps) => { 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 ConfirmationAlertView;