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