import React, { createContext, useContext, useRef } from 'react';
import RNInterface from './rn-interface';
export const SlashtagsContext = createContext({
    current: undefined
});
const SlashtagsContextStore = (props) => {
    const ref = useRef();
    return <SlashtagsContext.Provider value={ref} {...props}/>;
};
const SlashtagsInterface = ({ onApiReady }) => {
    const slashtagsRef = useContext(SlashtagsContext);
    return <RNInterface onApiReady={onApiReady} ref={slashtagsRef}/>;
};
export const SlashtagsProvider = ({ children, onApiReady }) => {
    return (<SlashtagsContextStore>
			<SlashtagsInterface onApiReady={onApiReady}/>
			{children}
		</SlashtagsContextStore>);
};
export default SlashtagsProvider;
//# sourceMappingURL=index.js.map