about summary refs log tree commit diff
path: root/src/components/Menu/context.tsx
blob: 1ddcd583fc40a9b935df81bcb9ec64725ec1021e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
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,
})