import { ReactElement } from "react"; import useSWR from "swr"; import { useRouter } from "next/router"; import Link from "next/link"; // services import { UserService } from "services/user.service"; // layouts import { WorkspaceSettingLayout } from "layouts/settings-layout"; import { AppLayout } from "layouts/app-layout"; // components import { ActivityIcon, ActivityMessage } from "components/core"; import { RichReadOnlyEditor } from "@plane/rich-text-editor"; import { WorkspaceSettingHeader } from "components/headers"; // icons import { History, MessageSquare } from "lucide-react"; // ui import { ExternalLinkIcon, Loader } from "@plane/ui"; // fetch-keys import { USER_ACTIVITY } from "constants/fetch-keys"; // helper import { timeAgo } from "helpers/date-time.helper"; // type import { NextPageWithLayout } from "types/app"; const userService = new UserService(); const ProfileActivityPage: NextPageWithLayout = () => { const router = useRouter(); const { workspaceSlug } = router.query; const { data: userActivity } = useSWR( workspaceSlug ? USER_ACTIVITY : null, workspaceSlug ? () => userService.getUserWorkspaceActivity(workspaceSlug.toString()) : null ); return ( <> {userActivity ? (

Activity

) : ( )} ); }; ProfileActivityPage.getLayout = function getLayout(page: ReactElement) { return ( }> {page} ); }; export default ProfileActivityPage;