MCPcopy Create free account
hub / github.com/experdot/pointer / showConfirmDialog

Function showConfirmDialog

src/renderer/src/components/common/ConfirmDialog.tsx:25–38  ·  view source on GitHub ↗
(options: ConfirmDialogOptions)

Source from the content-addressed store, hash-verified

23 const { modal } = App.useApp()
24
25 const showConfirmDialog = (options: ConfirmDialogOptions): void => {
26 const { title, content, okText = '确定', cancelText = '取消', danger, onOk, onCancel } = options
27
28 modal.confirm({
29 title,
30 content,
31 icon: <ExclamationCircleOutlined />,
32 okText,
33 cancelText,
34 okButtonProps: danger ? { danger: true } : undefined,
35 onOk,
36 onCancel
37 })
38 }
39
40 const showDeleteConfirm = (options: {
41 title?: string

Callers 1

showDeleteConfirmFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected