import "choerodon-ui/pro/lib/modal/style";
import _Modal from "choerodon-ui/pro/lib/modal";
export default function openWarnModal(refresh, formatMessage) {
  _Modal.open({
    movable: false,
    closable: false,
    key: _Modal.key(),
    title: formatMessage({
      id: 'data.lost'
    }),
    children: formatMessage({
      id: 'data.lost.warn'
    }),
    okCancel: false,
    onOk: refresh
  });
}