Mercurial
diff love/epi/src/routes/chat/$chatId.tsx @ 38:cf9caa4abc3e
[Love] FE and BE. Can chat and render images. Also created MCP for powerpoint generations.
| author | MrJuneJune <me@mrjunejune.com> |
|---|---|
| date | Mon, 01 Dec 2025 20:35:56 -0800 |
| parents | |
| children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/love/epi/src/routes/chat/$chatId.tsx Mon Dec 01 20:35:56 2025 -0800 @@ -0,0 +1,14 @@ +import React from 'react'; +import { createFileRoute } from '@tanstack/react-router'; +import { ChatUI } from '@/components/ChatUI/ChatUI'; + +export const Route = createFileRoute('/chat/$chatId')({ + component: ChatDetail, +}); + +function ChatDetail() { + const { chatId } = Route.useParams(); + const isNew = chatId === 'new'; + + return <ChatUI chatId={isNew ? null : chatId} />; +}