12 lines
285 B
TypeScript
12 lines
285 B
TypeScript
import React from 'react'
|
|
|
|
import type {ContextType, ItemContextType} from '#/components/Menu/types'
|
|
|
|
export const Context = React.createContext<ContextType>({
|
|
// @ts-ignore
|
|
control: null,
|
|
})
|
|
|
|
export const ItemContext = React.createContext<ItemContextType>({
|
|
disabled: false,
|
|
})
|