import React from 'react'
import { useParams } from 'react-router-dom'

export const Chat: React.FC = () => {
  const { id } = useParams<{ id: string }>()
  // const dispatch = useAppDispatch()
  // const { currentConversationId } = useAppSelector(state => state.conversation)

  // useEffect(() => {
  //   if (id && id !== currentConversationId) {
  //     dispatch(setCurrentConversation(id))
  //     // dispatch(fetchConversationDetails(id))
  //   }
  // }, [id, currentConversationId, dispatch])
  return (
    <h1>
      聊天页面 - Chat ID:
      {id}
    </h1>
  )
}
