Mercurial
view love/epi/src/routes/chat/$chatId.tsx @ 152:7387eec8e7f8
[Postdog] Updated to use Seobeo_Client instead of CURL. Updated to handle websocket connection.
| author | June Park <parkjune1995@gmail.com> |
|---|---|
| date | Sun, 11 Jan 2026 07:47:05 -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} />; }