Refactor folder structure (#4759)

This commit is contained in:
Satish Gandham 2024-06-11 14:39:52 +05:30 committed by GitHub
parent a0e16692da
commit 346bc2afe2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
1218 changed files with 187 additions and 177 deletions

View file

@ -0,0 +1,30 @@
"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;