import type React from "react"; import { Modal } from "antd"; import { sanitizeHtml } from "../../utils/html"; export const InstructionsModal = ({ title, children, visible, onCancel, }: { title: string; children: React.ReactNode; visible: boolean; onCancel: () => void; }) => { const contentStyle: Record = { padding: "0 24px 24px", whiteSpace: "pre-wrap" }; return ( <> onCancel()} width="70%" style={{ maxHeight: "calc(100vh - 250px)", minWidth: "400px", maxWidth: "800px", borderRadius: "8px", overflow: "hidden", padding: "0", }} bodyStyle={{ overflow: "auto", maxHeight: "calc(100vh - 250px)", padding: "0px" }} >

{title}

{typeof children === "string" ? (

) : (

{children}

)}
); };