import React, { FC, useState } from 'react'; import { useTranslation } from 'react-i18next'; import InAppNotificationList from './InAppNotificationList'; import { useSWRxInAppNotifications } from '../../stores/in-app-notification'; import PaginationWrapper from '../PaginationWrapper'; import CustomNavAndContents from '../CustomNavigation/CustomNavAndContents'; import PasswordSettings from '../Me/PasswordSettings'; const InAppNotificationPage: FC = () => { const [activePage, setActivePage] = useState(1); const [offset, setOffset] = useState(0); const limit = 10; const { data: inAppNotificationData } = useSWRxInAppNotifications(limit, offset); const { t } = useTranslation(); if (inAppNotificationData == null) { return (
); } const setPageNumber = (selectedPageNumber): void => { setActivePage(selectedPageNumber); const offset = (selectedPageNumber - 1) * limit; setOffset(offset); }; const AllInAppNotificationList = () => { return ( <> ); }; const navTabMapping = { user_infomation: { Icon: () => , Content: AllInAppNotificationList, i18n: t('in_app_notification.all'), index: 0, }, external_accounts: { Icon: () => , Content: PasswordSettings, i18n: t('in_app_notification.unopend'), index: 1, }, }; return ( ); }; export default InAppNotificationPage;