import { DoneAll } from '@mui/icons-material' import clsx from 'clsx' import { useTranslation } from 'react-i18next' import { NotificationsProps } from '@dao-dao/types' import { NoContent, PageLoader, useAppContext } from '../components' /** * A component to render notifications in the inbox. */ export const Notifications = ({ inbox: { checked, onCheck }, InboxMainItemRenderer, compact, className, }: NotificationsProps) => { const { t } = useTranslation() const { inbox } = useAppContext() // Type-check, should always be loaded for dapp. if (!inbox) { throw new Error(t('error.loadingData')) } const { loading, items } = inbox return (