Mercurial
view love/epi/src/routes/chat/$chatId.tsx @ 192:b818a4561a3c hg-web
Added AI genreated README.md. Needed to be read.
| author | MrJuneJune <me@mrjunejune.com> |
|---|---|
| date | Sat, 24 Jan 2026 21:52:14 -0800 |
| parents | cf9caa4abc3e |
| children |
line wrap: on
line source
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} />; }