You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
513 B
13 lines
513 B
import Notifications from 'mastodon/features/notifications'; |
|
import Notifications_v2 from 'mastodon/features/notifications_v2'; |
|
import { useAppSelector } from 'mastodon/store'; |
|
|
|
export const NotificationsWrapper = (props) => { |
|
const optedInGroupedNotifications = useAppSelector((state) => state.getIn(['settings', 'notifications', 'groupingBeta'], false)); |
|
|
|
return ( |
|
optedInGroupedNotifications ? <Notifications_v2 {...props} /> : <Notifications {...props} /> |
|
); |
|
}; |
|
|
|
export default NotificationsWrapper; |