import React, { useMemo } from "react" import { ExclamationConfirmProps } from "./interface" import "./styles/index.css" import Modal from "@components/Modal" import { NoticeDefaultIcon } from "@icons/NoticeIcon" /** * 服务确认组件 * * * ### 引用方法 * ```tsx * import { ExclamationConfirm } from "@atomintl/exchange-ui" * ``` */ const ExclamationConfirm: React.FC = props => { const { title, description, icon, onCancel } = props const content = useMemo( () => (
{icon ? icon : }

{title}

{description}
), [icon, title, description] ) return ( <> {content} ) } ExclamationConfirm.defaultProps = {} export { ExclamationConfirmProps } from "./interface" export default ExclamationConfirm