You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
521 B
21 lines
521 B
2 years ago
|
import React from 'react'
|
||
|
|
||
|
interface SetOptionListInterface {
|
||
|
(optionList: Record<string, any>): any
|
||
|
}
|
||
|
|
||
|
interface SetArgumentListInterface {
|
||
|
(argumentList: Record<string, any>): any
|
||
|
}
|
||
|
|
||
|
export interface ContextInterface {
|
||
|
optionList: Record<string, any>,
|
||
|
setOptionList: SetOptionListInterface
|
||
|
argumentList: Record<string, any>,
|
||
|
setArgumentList: SetArgumentListInterface,
|
||
|
}
|
||
|
|
||
|
const Context = React.createContext({} as ContextInterface)
|
||
|
export const Provider = Context.Provider
|
||
|
export default Context
|