mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
31 lines
753 B
TypeScript
31 lines
753 B
TypeScript
"use client";
|
|
|
|
import React from "react";
|
|
import { useParams } from "next/navigation";
|
|
// components
|
|
import { PageHead } from "@/components/core";
|
|
import { ProfileIssuesPage } from "@/components/profile/profile-issues";
|
|
|
|
const ProfilePageHeader = {
|
|
assigned: "Profile - Assigned",
|
|
created: "Profile - Created",
|
|
subscribed: "Profile - Subscribed",
|
|
};
|
|
|
|
const ProfileIssuesTypePage = () => {
|
|
const { profileViewId } = useParams() as { profileViewId: "assigned" | "subscribed" | "created" | undefined };
|
|
|
|
if (!profileViewId) return null;
|
|
|
|
const header = ProfilePageHeader[profileViewId];
|
|
|
|
return (
|
|
<>
|
|
<PageHead title={header} />
|
|
<ProfileIssuesPage type={profileViewId} />
|
|
</>
|
|
);
|
|
};
|
|
|
|
export default ProfileIssuesTypePage;
|