mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-03-13 06:26:41 +00:00
11 lines
275 B
JavaScript
11 lines
275 B
JavaScript
// Copyright (C) 2017-2023 Smart code 203358507
|
|
|
|
const useModelState = require('stremio/common/useModelState');
|
|
|
|
const map = (ctx) => ctx.notifications;
|
|
|
|
const useNotifications = () => {
|
|
return useModelState({ model: 'ctx', map });
|
|
};
|
|
|
|
module.exports = useNotifications;
|