fieldnotesai
Preparing search index...
src/hooks/useAdminNotifications
useAdminNotifications
Function useAdminNotifications
useAdminNotifications
()
:
{
markAllRead
:
()
=>
Promise
<
void
>
;
markRead
:
(
id
:
string
)
=>
Promise
<
void
>
;
notifications
:
AdminNotification
[]
;
removeNotifications
:
(
ids
:
string
[]
)
=>
void
;
unreadCount
:
number
;
}
Custom React Hook for managing the admin notifications state and logic.
Returns
{
markAllRead
:
()
=>
Promise
<
void
>
;
markRead
:
(
id
:
string
)
=>
Promise
<
void
>
;
notifications
:
AdminNotification
[]
;
removeNotifications
:
(
ids
:
string
[]
)
=>
void
;
unreadCount
:
number
;
}
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
fieldnotesai
Loading...
Custom React Hook for managing the admin notifications state and logic.