mirror of
https://github.com/Unleash/unleash.git
synced 2025-08-27 13:49:10 +02:00
feat: add cr plausible context
This commit is contained in:
parent
fbb5733f18
commit
e04bccace5
@ -0,0 +1,15 @@
|
||||
import { createContext, useContext } from 'react';
|
||||
|
||||
const defaultContext = {
|
||||
willOverwriteStrategyChanges: false,
|
||||
registerWillOverwriteStrategyChanges: () => {},
|
||||
};
|
||||
|
||||
const ChangeRequestPlausibleContext = createContext(defaultContext);
|
||||
|
||||
export const ChangeRequestPlausibleProvider =
|
||||
ChangeRequestPlausibleContext.Provider;
|
||||
|
||||
export const useChangeRequestPlausibleContext = (): typeof defaultContext => {
|
||||
return useContext(ChangeRequestPlausibleContext);
|
||||
};
|
Loading…
Reference in New Issue
Block a user