|
|
@@ -3,7 +3,7 @@ import { memo } from 'react';
|
|
|
import dynamic from 'next/dynamic';
|
|
|
|
|
|
import { SidebarContentsType } from '~/interfaces/ui';
|
|
|
-import { useIsAiEnabled } from '~/stores-universal/context';
|
|
|
+import { useIsAiEnabled, useIsGuestUser } from '~/stores-universal/context';
|
|
|
import { useSidebarMode } from '~/stores/ui';
|
|
|
|
|
|
import { PrimaryItem } from './PrimaryItem';
|
|
|
@@ -24,6 +24,7 @@ export const PrimaryItems = memo((props: Props) => {
|
|
|
|
|
|
const { data: sidebarMode } = useSidebarMode();
|
|
|
const { data: isAiEnabled } = useIsAiEnabled();
|
|
|
+ const { data: isGuestUser } = useIsGuestUser();
|
|
|
|
|
|
if (sidebarMode == null) {
|
|
|
return <></>;
|
|
|
@@ -36,7 +37,7 @@ export const PrimaryItems = memo((props: Props) => {
|
|
|
<PrimaryItem sidebarMode={sidebarMode} contents={SidebarContentsType.RECENT} label="Recent Changes" iconName="update" onHover={onItemHover} />
|
|
|
<PrimaryItem sidebarMode={sidebarMode} contents={SidebarContentsType.BOOKMARKS} label="Bookmarks" iconName="bookmarks" onHover={onItemHover} />
|
|
|
<PrimaryItem sidebarMode={sidebarMode} contents={SidebarContentsType.TAG} label="Tags" iconName="local_offer" onHover={onItemHover} />
|
|
|
- <PrimaryItemForNotification sidebarMode={sidebarMode} onHover={onItemHover} />
|
|
|
+ {!isGuestUser && <PrimaryItemForNotification sidebarMode={sidebarMode} onHover={onItemHover} />}
|
|
|
{isAiEnabled && (
|
|
|
<PrimaryItem
|
|
|
sidebarMode={sidebarMode}
|