UNPKG
@magicbell/react-headless
Version:
beta (4.2.0-beta.3)
latest (5.5.1)
5.5.1
5.5.0
5.4.2
5.4.1
5.4.0
5.3.0
5.2.0
5.1.0
5.0.2
5.0.1
5.0.0
4.5.6
4.5.5
4.5.4
4.5.3
4.5.2
4.5.1
4.5.0
4.4.9
4.4.8
4.4.7
4.4.6
4.4.5
4.4.4
4.4.3
4.4.2
4.4.1
4.4.0
4.3.2
4.3.1
4.3.0
4.2.8
4.2.7
4.2.6
4.2.5
4.2.4
4.2.3
4.2.2
4.2.1
4.2.0
4.2.0-beta.3
4.2.0-beta.2
4.2.0-beta.1
4.1.0
4.0.4-beta.2
4.0.4-beta.1
4.0.3
4.0.2
4.0.1
4.0.0
4.0.0-beta.1
3.1.1
3.1.0
3.0.0
2.6.4
2.6.3
2.6.2
2.6.1
2.6.0
2.5.1
2.5.0
2.5.0-rc.1
2.4.0
2.4.0-rc.2
2.3.5
2.3.4
2.3.3
2.3.2
2.3.1
2.3.0
2.2.1
2.2.0
2.1.0
2.0.2
2.0.1
2.0.0
2.0.0-rc.4
2.0.0-rc.3
2.0.0-rc.1
1.0.3
1.0.2
1.0.1
1.0.0
1.0.0-beta.1
Hooks to build a notification inbox
www.magicbell.com/docs/libraries
magicbell/magicbell-js
@magicbell/react-headless
/
dist
/
esm
/
hooks
/
useNotification.d.ts
4 lines
(3 loc)
•
256 B
TypeScript
View Raw
1
2
3
4
import
INotification
from
'../types/INotification.js'
;
import
IRemoteNotification
from
'../types/IRemoteNotification.js'
;
export
default
function
useNotification
(
data: IRemoteNotification, onUnmount?: (notification: INotification) =>
void
):
INotification
;