MCPcopy Create free account
hub / github.com/pgadmin-org/pgadmin4 / useModal

Function useModal

web/pgadmin/static/js/helpers/ModalProvider.jsx:48–50  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

46};
47
48export function useModal() {
49 return React.useContext(ModalContext);
50}
51
52export function AlertContent({ text, confirm, okLabel = gettext('OK'), cancelLabel = gettext('Cancel'), onOkClick, onCancelClick, okIcon = 'default', plainText = false}) {
53 const body = (typeof text === 'string')

Callers 7

DebuggerComponentFunction · 0.90
MainToolBarFunction · 0.90
SchemaDiffComponentFunction · 0.90
QueryToolComponentFunction · 0.90
NotifierProviderFunction · 0.90
AdHocConnectionFunction · 0.90
ModalContainerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected