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