mirror of
https://github.com/glitch-soc/mastodon.git
synced 2024-11-30 03:50:13 -05:00
13 lines
513 B
React
13 lines
513 B
React
|
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;
|