import { Divider, Popup } from "antd-mobile"; import { CloseOutline } from "antd-mobile-icons"; import "./index.less"; interface DefinedProps { visible: boolean; title: string; children: React.ReactNode; onClose: () => void; } function XPopup(props: DefinedProps) { const { visible, title, children, onClose } = props; return (

{title}

{children}
); } export default XPopup;