import { Plugin } from '@root'
Plugin.modal.open(...)
Plugin.modal.close()
import { Plugin } from '@root'
Plugin.openModal(...)
Plugin.closeModal()
import { Plugin } from '@root'
const MyComponent = ({applicationId}) => {
const applicationConfig = Plugin.useApplicationConfig(applicationId)
}
import { Plugin } from '@root'
const MyComponent = () => {
const { config } = Plugin.useApplication()
}
import { Plugin } from '@root'
const MyComponent = ({applicationId}) => {
const handleApplicationConfirm = confirmPayload => {
Plugin.applicationConfirm.add(applictionId, confirmPayload)
}
}
import { Plugin } from '@root'
const MyComponent = () => {
const { confirm } = Plugin.useApplication()
const handleApplicationConfirm = confirmPayload => {
confirm.add(applictionId, confirmPayload)
}
}
applicationConfirm / remove
import { Plugin } from '@root'
const MyComponent = ({applicationId}) => {
const handleRemoveApplicationConfirm = () => {
Plugin.applicationConfirm.remove(applictionId)
}
}
import { Plugin } from '@root'
const MyComponent = () => {
const { confirm } = Plugin.useApplication()
const handleApplicationConfirm = confirmPayload => {
confirm.remove()
}
}