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