Skip to content

armgit / cindy

Public Imported from GitHub
0

Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。

452 B
Raw Blame
import { createContext, useContext } from 'react';
import type { RichMessageSender } from '@cindy/maker-shared/rich-answer';

/** Only writable conversation surfaces supply a sender. Previews and cloud history do not. */
const SessionQuickSendContext = createContext<RichMessageSender | null>(null);
export const SessionQuickSendProvider = SessionQuickSendContext.Provider;
export const useSessionQuickSend = () => useContext(SessionQuickSendContext);