2024-01-19 10:35:52 +00:00
|
|
|
import React from "react";
|
|
|
|
// icons
|
|
|
|
import { Activity, CircleUser, KeyRound, LucideProps, Settings2 } from "lucide-react";
|
|
|
|
|
|
|
|
export const PROFILE_ACTION_LINKS: {
|
|
|
|
key: string;
|
|
|
|
label: string;
|
|
|
|
href: string;
|
|
|
|
highlight: (pathname: string) => boolean;
|
|
|
|
Icon: React.FC<LucideProps>;
|
|
|
|
}[] = [
|
|
|
|
{
|
|
|
|
key: "profile",
|
|
|
|
label: "Profile",
|
|
|
|
href: `/profile`,
|
|
|
|
highlight: (pathname: string) => pathname === "/profile",
|
|
|
|
Icon: CircleUser,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
key: "change-password",
|
|
|
|
label: "Change password",
|
|
|
|
href: `/profile/change-password`,
|
|
|
|
highlight: (pathname: string) => pathname === "/profile/change-password",
|
|
|
|
Icon: KeyRound,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
key: "activity",
|
|
|
|
label: "Activity",
|
|
|
|
href: `/profile/activity`,
|
|
|
|
highlight: (pathname: string) => pathname === "/profile/activity",
|
|
|
|
Icon: Activity,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
key: "preferences",
|
|
|
|
label: "Preferences",
|
2024-01-23 12:19:22 +00:00
|
|
|
href: `/profile/preferences/theme`,
|
2024-01-19 10:35:52 +00:00
|
|
|
highlight: (pathname: string) => pathname.includes("/profile/preferences"),
|
|
|
|
Icon: Settings2,
|
|
|
|
},
|
|
|
|
];
|
2024-01-25 12:30:45 +00:00
|
|
|
|
|
|
|
export const PROFILE_VIEWER_TAB = [
|
|
|
|
{
|
|
|
|
route: "",
|
|
|
|
label: "Summary",
|
|
|
|
selected: "/[workspaceSlug]/profile/[userId]",
|
|
|
|
},
|
|
|
|
];
|
|
|
|
|
|
|
|
export const PROFILE_ADMINS_TAB = [
|
|
|
|
{
|
|
|
|
route: "assigned",
|
|
|
|
label: "Assigned",
|
|
|
|
selected: "/[workspaceSlug]/profile/[userId]/assigned",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
route: "created",
|
|
|
|
label: "Created",
|
|
|
|
selected: "/[workspaceSlug]/profile/[userId]/created",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
route: "subscribed",
|
|
|
|
label: "Subscribed",
|
|
|
|
selected: "/[workspaceSlug]/profile/[userId]/subscribed",
|
|
|
|
},
|
2024-03-06 08:54:36 +00:00
|
|
|
{
|
|
|
|
route: "activity",
|
|
|
|
label: "Activity",
|
|
|
|
selected: "/[workspaceSlug]/profile/[userId]/activity",
|
|
|
|
},
|
2024-01-25 12:30:45 +00:00
|
|
|
];
|