mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-10-15 04:18:45 +00:00
13 lines
288 B
TypeScript
13 lines
288 B
TypeScript
import { useContext } from "react"
|
|
|
|
import { chatInputContext } from "./ChatInputProvider"
|
|
|
|
export const useChatInput = () => {
|
|
const context = useContext(chatInputContext)
|
|
|
|
if (!context) {
|
|
throw new Error("useChatInput must be used within a ChatInputProvider")
|
|
}
|
|
|
|
return context
|
|
}
|