2024-07-18 16:36:09 +02:00
|
|
|
import Notifications from 'flavours/glitch/features/notifications';
|
|
|
|
import Notifications_v2 from 'flavours/glitch/features/notifications_v2';
|
2024-08-27 16:55:51 +02:00
|
|
|
import { selectUseGroupedNotifications } from 'flavours/glitch/selectors/settings';
|
2024-07-18 16:36:09 +02:00
|
|
|
import { useAppSelector } from 'flavours/glitch/store';
|
|
|
|
|
|
|
|
export const NotificationsWrapper = (props) => {
|
2024-08-27 16:55:51 +02:00
|
|
|
const optedInGroupedNotifications = useAppSelector(selectUseGroupedNotifications);
|
2024-07-18 16:36:09 +02:00
|
|
|
|
|
|
|
return (
|
|
|
|
optedInGroupedNotifications ? <Notifications_v2 {...props} /> : <Notifications {...props} />
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|
|
|
|
export default NotificationsWrapper;
|