UNPKG

@mistong/eui-dialog

Version:
52 lines (43 loc) 781 B
import Dialog from './Dialog'; import confirm from './confirm'; Dialog.confirm = (props) => { const config = { type: 'confirm', okCancel: true, ...props, }; return confirm(config); }; Dialog.success = (props) => { const config = { type: 'success', okCancel: false, ...props, }; return confirm(config); }; Dialog.warning = (props) => { const config = { type: 'warning', okCancel: false, ...props, }; return confirm(config); }; Dialog.error = (props) => { const config = { type: 'error', okCancel: false, ...props, }; return confirm(config); }; Dialog.info = (props) => { const config = { type: 'info', okCancel: false, ...props, }; return confirm(config); }; module.exports = Dialog;