InAppNotification.tsx 777 B

12345678910111213141516171819202122232425
  1. import React, { Suspense } from 'react';
  2. import dynamic from 'next/dynamic';
  3. import { useTranslation } from 'react-i18next';
  4. import ItemsTreeContentSkeleton from '../../ItemsTree/ItemsTreeContentSkeleton';
  5. const InAppNotificationSubstance = dynamic(() => import('./InAppNotificationSubstance').then(mod => mod.InAppNotificationSubstance), { ssr: false });
  6. export const InAppNotification = (): JSX.Element => {
  7. const { t } = useTranslation();
  8. return (
  9. <div className="px-3">
  10. <div className="grw-sidebar-content-header py-3 d-flex">
  11. <h3 className="mb-0">
  12. {t('In-App Notification')}
  13. </h3>
  14. </div>
  15. <Suspense fallback={<ItemsTreeContentSkeleton />}>
  16. <InAppNotificationSubstance />
  17. </Suspense>
  18. </div>
  19. );
  20. };