mirror of
https://github.com/sourcebot-dev/sourcebot.git
synced 2025-12-12 04:15:30 +00:00
8 lines
No EOL
190 B
TypeScript
8 lines
No EOL
190 B
TypeScript
'use client';
|
|
|
|
import { useParams } from "next/navigation";
|
|
|
|
export const useChatId = (): string | undefined => {
|
|
const { id: chatId } = useParams<{ id: string }>();
|
|
return chatId;
|
|
} |