mirror of
https://github.com/supabase/supabase.git
synced 2026-10-06 01:45:10 +03:00
* First * Fix the parsing of SQL. * Get thread data action * Remove old page * Wait for data to complete * SSR everywhere * Remove unused * Add monaco settings * update loaders * Add sorting * supress hydration warnings * Fix profile layout * more server action action * fixes * Update page.tsx * Update actions.ts * Update AssistantChatForm.tsx * init * add polling * Update actions.ts * redirect to message id * Update page.tsx * Update page.tsx * handle run loading states with use client state with valtio * reduce first load JS * test action v1 * test action v2 * server action test 3 * test action 4 * test action 5 * test 6 * test 7 * test 7 * test 8 * test 9 * test 10 * test 11 * TEST 12 * TEST 13 * try and make it work * Update page.tsx * Update actions.ts * redirect added in * Update page.tsx * Update SchemaFlow.tsx * Update SchemaFlowHandler.tsx * 14 * Update SchemaFlow.tsx * move parse tables to client * a11y fixes --------- Co-authored-by: Terry Sutton <saltcod@gmail.com> Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com>
29 lines
922 B
TypeScript
29 lines
922 B
TypeScript
'use client'
|
|
|
|
import { useParams } from 'next/navigation'
|
|
// import { useMessagesQuery } from '@/data/messages-query'
|
|
// import { UserMessage } from '@/lib/types'
|
|
|
|
const CurrentThreadName = () => {
|
|
// const { threadId, runId, messageId }: { threadId: string; runId: string; messageId: string } =
|
|
// useParams()
|
|
|
|
// const isConversation = threadId !== undefined && runId !== undefined
|
|
|
|
// const { data } = useMessagesQuery({ threadId, runId, enabled: isConversation })
|
|
// const selectedMessage = data?.messages.find((m) => m.id === messageId) as UserMessage
|
|
|
|
return (
|
|
// <div className="hidden xl:block flex items-center gap-x-4">
|
|
// {selectedMessage !== undefined && (
|
|
// <p title={selectedMessage.text} className="truncate max-w-[700px] border-l text-sm px-4">
|
|
// {selectedMessage.text}
|
|
// </p>
|
|
// )}
|
|
// </div>
|
|
<></>
|
|
)
|
|
}
|
|
|
|
export default CurrentThreadName
|