mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-30 02:49:03 +01:00
f587ff643f
Co-authored-by: Eugen Rochko <eugen@zeonfederated.com> Co-authored-by: Claire <claire.github-309c@sitedethib.com>
13 lines
No EOL
513 B
JavaScript
13 lines
No EOL
513 B
JavaScript
import Notifications from 'mastodon/features/notifications';
|
|
import Notifications_v2 from 'mastodon/features/notifications_v2';
|
|
import { useAppSelector } from 'mastodon/store';
|
|
|
|
export const NotificationsWrapper = (props) => {
|
|
const optedInGroupedNotifications = useAppSelector((state) => state.getIn(['settings', 'notifications', 'groupingBeta'], false));
|
|
|
|
return (
|
|
optedInGroupedNotifications ? <Notifications_v2 {...props} /> : <Notifications {...props} />
|
|
);
|
|
};
|
|
|
|
export default NotificationsWrapper; |