UNPKG

@appbuckets/react-ui-smart-components

Version:

UI Extended Components that work with @appbuckets/react-client and @appbuckets/react-ui

15 lines (14 loc) 678 B
import type { default as NotificationManager } from '../../NotificationManager'; import type { BaseActionBuilderNotifications } from '../BaseActionBuilder.types'; export interface UseActionNotificationResult { /** Use default settings to raise onCanceled Notification */ raiseOnCanceled: () => void; /** Use default settings to raise onError Notification */ raiseOnError: (thrownError?: any) => void; /** Use default settings to raise onSubmitted Notification */ raiseOnSubmitted: () => void; } export default function useActionNotification( manager: NotificationManager | undefined, notifications: BaseActionBuilderNotifications ): UseActionNotificationResult;