stream-chat-react
Version:
React components to create chat conversations or livestream style chat
7 lines (6 loc) • 384 B
JavaScript
import React, { createContext, useContext } from 'react';
const AttachmentSelectorContext = createContext({
fileInput: null,
});
export const AttachmentSelectorContextProvider = ({ children, value, }) => (React.createElement(AttachmentSelectorContext.Provider, { value: value }, children));
export const useAttachmentSelectorContext = () => useContext(AttachmentSelectorContext);