import { ReactElement } from "react"; import useSWR from "swr"; 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 { calculateTimeAgo } from "helpers/date-time.helper"; // type import { NextPageWithLayout } from "lib/types"; const userService = new UserService(); const ProfileActivityPage: NextPageWithLayout = () => { const { data: userActivity } = useSWR(USER_ACTIVITY, () => userService.getUserActivity()); return (

Activity

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