Mercurial
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 37:fb9bcd3145cb | 38:cf9caa4abc3e |
|---|---|
| 1 import React from 'react'; | |
| 2 import { createFileRoute } from '@tanstack/react-router'; | |
| 3 import { ChatUI } from '@/components/ChatUI/ChatUI'; | |
| 4 | |
| 5 export const Route = createFileRoute('/chat/$chatId')({ | |
| 6 component: ChatDetail, | |
| 7 }); | |
| 8 | |
| 9 function ChatDetail() { | |
| 10 const { chatId } = Route.useParams(); | |
| 11 const isNew = chatId === 'new'; | |
| 12 | |
| 13 return <ChatUI chatId={isNew ? null : chatId} />; | |
| 14 } |