mirror of
https://github.com/tooot-app/app
synced 2025-06-05 22:19:13 +02:00
11 lines
298 B
TypeScript
11 lines
298 B
TypeScript
import { createContext, Dispatch } from 'react'
|
|
import { ComposeAction, ComposeState } from './types'
|
|
|
|
type ContextType = {
|
|
composeState: ComposeState
|
|
composeDispatch: Dispatch<ComposeAction>
|
|
}
|
|
const ComposeContext = createContext<ContextType>({} as ContextType)
|
|
|
|
export default ComposeContext
|