mirror of
https://github.com/tooot-app/app
synced 2025-06-05 22:19:13 +02:00
iOS almost working
This commit is contained in:
10
src/screens/Compose/utils/createContext.ts
Normal file
10
src/screens/Compose/utils/createContext.ts
Normal file
@ -0,0 +1,10 @@
|
||||
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
|
Reference in New Issue
Block a user