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