UNPKG

@assistant-ui/react

Version:

Open-source TypeScript/React library for building production-grade AI chat experiences

14 lines (9 loc) • 367 B
"use client"; import { createContext, useContext } from "react"; export type ActionBarInteractionContextValue = { acquireInteractionLock: () => () => void; }; export const ActionBarInteractionContext = createContext<ActionBarInteractionContextValue | null>(null); export const useActionBarInteractionContext = () => useContext(ActionBarInteractionContext);