sourcebot/packages/web/src/app/[domain]/chat/useChatId.ts
Brendan Kellam 2b0dac4782
feat: Ask Sourcebot (#392)
Co-authored-by: msukkari <michael.sukkarieh@mail.mcgill.ca>
2025-07-23 11:25:15 -07:00

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;
}