import NotificationList from '@/components/NotificationList' import TrustScoreFilter from '@/components/TrustScoreFilter' import PrimaryPageLayout from '@/layouts/PrimaryPageLayout' import { usePrimaryPage } from '@/PageManager' import { TPageRef } from '@/types' import { Bell } from 'lucide-react' import { forwardRef, useEffect, useRef } from 'react' import { useTranslation } from 'react-i18next' const NotificationListPage = forwardRef((_, ref) => { const { current } = usePrimaryPage() const firstRenderRef = useRef(true) const notificationListRef = useRef<{ refresh: () => void }>(null) useEffect(() => { if (current === 'notifications' && !firstRenderRef.current) { notificationListRef.current?.refresh() } firstRenderRef.current = false }, [current]) return ( } displayScrollToTopButton > ) }) NotificationListPage.displayName = 'NotificationListPage' export default NotificationListPage function NotificationListPageTitlebar() { const { t } = useTranslation() return (
{t('Notifications')}
) }