import React, { createContext } from 'react';

const InteractionConfigContext = createContext<{ updateOnly?: boolean }>({});

function InteractionConfigProvider({ updateOnly, ...props }) {
  return <InteractionConfigContext.Provider value={{ updateOnly }} {...props} />;
}

export { InteractionConfigContext, InteractionConfigProvider };
