view love/epi/src/routes/chat/$chatId.tsx @ 50:983769fba767

Updated so that fzf works out of the box.
author June Park <me@mrjunejune.com>
date Tue, 16 Dec 2025 21:01:45 -0500
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} />;
}