diff --git a/src/app/library/page.tsx b/src/app/library/page.tsx index 9c40b2b..3eb923e 100644 --- a/src/app/library/page.tsx +++ b/src/app/library/page.tsx @@ -1,8 +1,8 @@ 'use client'; import DeleteChat from '@/components/DeleteChat'; -import { cn, formatTimeDifference } from '@/lib/utils'; -import { BookOpenText, ClockIcon, Delete, ScanEye } from 'lucide-react'; +import { formatTimeDifference } from '@/lib/utils'; +import { BookOpenText, ClockIcon, FileText, Globe2Icon } from 'lucide-react'; import Link from 'next/link'; import { useEffect, useState } from 'react'; @@ -10,7 +10,8 @@ export interface Chat { id: string; title: string; createdAt: string; - focusMode: string; + sources: string[]; + files: { fileId: string; name: string }[]; } const Page = () => { @@ -37,74 +38,137 @@ const Page = () => { fetchChats(); }, []); - return loading ? ( -
- No chats found. -
-- {formatTimeDifference(new Date(), chat.createdAt)} Ago -
-+ No chats found. +
++ + Start a new chat + {' '} + to see it listed here. +
+