| 24 | }; |
| 25 | |
| 26 | export interface AlertContextData { |
| 27 | alerts: Alerts; |
| 28 | isFetched?: boolean; |
| 29 | loadedAlerts?: boolean; |
| 30 | updateAlerts?: UseMutateAsyncFunction< |
| 31 | unknown, |
| 32 | unknown, |
| 33 | AlertsUpdate, |
| 34 | () => Promise<void> |
| 35 | >; |
| 36 | updateLastReferralReminder?: UseMutateAsyncFunction; |
| 37 | updateLastBootPopup?: UseMutateAsyncFunction; |
| 38 | updateHasSeenOpportunity?: UseMutateAsyncFunction; |
| 39 | clearOpportunityAlert?: UseMutateAsyncFunction; |
| 40 | } |
| 41 | |
| 42 | const AlertContext = React.createContext<AlertContextData>({ |
| 43 | alerts: ALERT_DEFAULTS, |
nothing calls this directly
no outgoing calls
no test coverage detected