mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-12-01 20:39:03 +01:00
13 lines
534 B
React
13 lines
534 B
React
|
import Notifications from 'flavours/glitch/features/notifications';
|
||
|
import Notifications_v2 from 'flavours/glitch/features/notifications_v2';
|
||
|
import { useAppSelector } from 'flavours/glitch/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;
|