-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(masterbots.ai): cherry-pick conflict typo
- Loading branch information
Showing
3 changed files
with
17 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,18 @@ | ||
import { BrowseThread } from '@/components/browse-thread' | ||
import { ChatPageProps } from '@/app/chat/[chatbot]/[threadId]/page' | ||
import { getThread } from '@/app/actions' | ||
|
||
import { ThreadPageProps } from '@/app/(browse)/[category]/[threadId]/page' | ||
import { getMessagePairs, getThread } from '@/app/actions' | ||
import { ThreadAccordionServer } from '@/components/shared/thread-accordion.server' | ||
|
||
export { generateMbMetadata as generateMetadata } from '@/lib/metadata' | ||
|
||
export default async function ChatPage({ params }: ChatPageProps) { | ||
// ? When a user clicks to a thread, the URL gets updated to this one. | ||
// ? When a user navigates within the bot page and click to a thread, the URL gets updated to this one. | ||
// * When sharing, the URL gets updated to this one. | ||
export default async function ChatPage({ params }: ThreadPageProps) { | ||
const thread = await getThread({ | ||
threadId: params.threadId, | ||
}) | ||
return <BrowseThread thread={thread} /> | ||
const messagePairs = await getMessagePairs(thread.threadId) | ||
|
||
return <ThreadAccordionServer messagePairs={messagePairs} thread={thread} /> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters