import { ReactElement, useState } from "react"; import { observer } from "mobx-react"; //hooks import { useApplication } from "hooks/store"; // layouts import { ProfileSettingsLayout } from "layouts/settings-layout"; // components import { SidebarHamburgerToggle } from "components/core/sidebar/sidebar-menu-hamburger-toggle"; import { ProfileActivityListPage } from "components/profile"; import { PageHead } from "components/core"; // ui import { Button } from "@plane/ui"; // type import { NextPageWithLayout } from "lib/types"; const PER_PAGE = 100; const ProfileActivityPage: NextPageWithLayout = observer(() => { // states const [pageCount, setPageCount] = useState(1); const [totalPages, setTotalPages] = useState(0); const [resultsCount, setResultsCount] = useState(0); // store hooks const { theme: themeStore } = useApplication(); const updateTotalPages = (count: number) => setTotalPages(count); const updateResultsCount = (count: number) => setResultsCount(count); const handleLoadMore = () => setPageCount((prev) => prev + 1); const activityPages: JSX.Element[] = []; for (let i = 0; i < pageCount; i++) activityPages.push( ); return ( <>
themeStore.toggleSidebar()} />

Activity

{activityPages} {pageCount < totalPages && resultsCount !== 0 && (
)}
); }); ProfileActivityPage.getLayout = function getLayout(page: ReactElement) { return {page}; }; export default ProfileActivityPage;