import { createContext, useContext, useRef } from 'react'; import type { MutableRefObject } from 'react'; type SetConvoContext = MutableRefObject; export const SetConvoContext = createContext({} as SetConvoContext); export const SetConvoProvider = ({ children }: { children: React.ReactNode }) => { const hasSetConversation = useRef(false); return {children}; }; export const useSetConvoContext = () => useContext(SetConvoContext);