view love/epi/src/routes/chat/$chatId.tsx @ 46:b9a40c633c93

[Gara] Adding sample android app which will be use C logic for peer to peer connection.
author MrJuneJune <me@mrjunejune.com>
date Thu, 04 Dec 2025 06:50:40 -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} />;
}