mirror of
https://github.com/makeplane/plane.git
synced 2026-07-12 21:40:18 +02:00
15 lines
493 B
TypeScript
15 lines
493 B
TypeScript
|
|
import { PiChatLogo } from "@plane/ui";
|
||
|
|
import { SIDEBAR_USER_MENU_ITEMS } from "@/ce/constants/dashboard";
|
||
|
|
import { EUserPermissions } from "./user-permissions";
|
||
|
|
|
||
|
|
SIDEBAR_USER_MENU_ITEMS.push({
|
||
|
|
key: "pi-chat",
|
||
|
|
label: "Pi chat",
|
||
|
|
href: `/pi-chat`,
|
||
|
|
access: [EUserPermissions.ADMIN, EUserPermissions.MEMBER, EUserPermissions.GUEST],
|
||
|
|
highlight: (pathname: string, baseUrl: string) => pathname.includes(`${baseUrl}/pi-chat/`),
|
||
|
|
Icon: PiChatLogo,
|
||
|
|
});
|
||
|
|
|
||
|
|
export { SIDEBAR_USER_MENU_ITEMS };
|