mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-12-05 02:09:03 +01:00
14 lines
No EOL
543 B
JavaScript
14 lines
No EOL
543 B
JavaScript
import Notifications from 'mastodon/features/notifications';
|
|
import Notifications_v2 from 'mastodon/features/notifications_v2';
|
|
import { selectUseGroupedNotifications } from 'mastodon/selectors/settings';
|
|
import { useAppSelector } from 'mastodon/store';
|
|
|
|
export const NotificationsWrapper = (props) => {
|
|
const optedInGroupedNotifications = useAppSelector(selectUseGroupedNotifications);
|
|
|
|
return (
|
|
optedInGroupedNotifications ? <Notifications_v2 {...props} /> : <Notifications {...props} />
|
|
);
|
|
};
|
|
|
|
export default NotificationsWrapper; |