contexts.AutoSubmitContext.tsx Maven / Gradle / Ivy
import React, { createContext, useRef } from 'react';
export type SetAutoSubmit = React.Dispatch>
export type AutoSubmitRef = React.MutableRefObject
export const AutoSubmitContext = createContext(null as unknown as AutoSubmitRef);
const AutoSubmitProvider = ({children}: {children: React.ReactNode}) => {
const ref = useRef(null)
return (
{children}
)
}
export default AutoSubmitProvider;