Use core messages spec (#337)
This commit is contained in:
parent
095550d4dc
commit
901e4ccec1
7 changed files with 231 additions and 107 deletions
|
|
@ -7,9 +7,8 @@ import { EmptyScreen } from '@/components/empty-screen'
|
|||
import { useLocalStorage } from '@/lib/hooks/use-local-storage'
|
||||
import { useEffect, useState } from 'react'
|
||||
import { useUIState, useAIState } from 'ai/rsc'
|
||||
import { Session } from '@/lib/types'
|
||||
import { Message, Session } from '@/lib/types'
|
||||
import { usePathname, useRouter } from 'next/navigation'
|
||||
import { Message } from '@/lib/chat/actions'
|
||||
import { useScrollAnchor } from '@/lib/hooks/use-scroll-anchor'
|
||||
import { toast } from 'sonner'
|
||||
|
||||
|
|
@ -71,7 +70,7 @@ export function Chat({ id, className, session, missingKeys }: ChatProps) {
|
|||
) : (
|
||||
<EmptyScreen />
|
||||
)}
|
||||
<div className="h-px w-full" ref={visibilityRef} />
|
||||
<div className="w-full h-px" ref={visibilityRef} />
|
||||
</div>
|
||||
<ChatPanel
|
||||
id={id}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue