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 { ProfileSettingsLayout } from "layouts/settings-layout"; // components import { ActivityIcon, ActivityMessage } from "components/core"; import { RichReadOnlyEditor } from "@plane/rich-text-editor"; // 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(USER_ACTIVITY, () => userService.getUserActivity()); return (

Activity

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