diff --git a/app/components/sidebar.tsx b/app/components/sidebar.tsx index 47411394..6d24fbf9 100644 --- a/app/components/sidebar.tsx +++ b/app/components/sidebar.tsx @@ -1,4 +1,4 @@ -import { useEffect, useRef, useMemo } from "react"; +import { useEffect, useRef, useMemo, useState } from "react"; import styles from "./home.module.scss"; @@ -128,6 +128,31 @@ function useDragSideBar() { }; } +function EEIcon() { + // 彩蛋 + const [count, setCount] = useState(0); + + return ( +
setCount((c) => c + 1)}> + + {count >= 9 ? ( +
+ ); +} + export function SideBar(props: { className?: string }) { const chatStore = useChatStore(); @@ -162,7 +187,7 @@ export function SideBar(props: { className?: string }) { Build your own AI assistant. */}
- +
diff --git a/package.json b/package.json index b31d6a90..fa6619a7 100644 --- a/package.json +++ b/package.json @@ -25,6 +25,7 @@ "emoji-picker-react": "^4.5.15", "fuse.js": "^7.0.0", "html-to-image": "^1.11.11", + "katex": "^0.16.9", "mermaid": "^10.6.1", "nanoid": "^5.0.3", "next": "^13.4.9", @@ -64,4 +65,4 @@ "resolutions": { "lint-staged/yaml": "^2.2.2" } -} \ No newline at end of file +}