2022-12-03 20:47:11 +01:00
|
|
|
import { QueryKeyTimeline } from '@utils/queryHooks/timeline'
|
|
|
|
import { createContext } from 'react'
|
|
|
|
|
|
|
|
type ContextType = {
|
|
|
|
queryKey?: QueryKeyTimeline
|
|
|
|
rootQueryKey?: QueryKeyTimeline
|
|
|
|
|
|
|
|
status?: Mastodon.Status
|
|
|
|
|
2022-12-05 14:50:03 +01:00
|
|
|
reblogStatus?: Mastodon.Status // When it is a reblog, pass the root status
|
2022-12-03 20:47:11 +01:00
|
|
|
ownAccount?: boolean
|
|
|
|
spoilerHidden?: boolean
|
|
|
|
copiableContent?: React.MutableRefObject<{
|
|
|
|
content: string
|
|
|
|
complete: boolean
|
|
|
|
}>
|
2022-12-17 23:21:56 +01:00
|
|
|
detectedLanguage?: React.MutableRefObject<string>
|
2022-12-03 20:47:11 +01:00
|
|
|
|
|
|
|
highlighted?: boolean
|
2022-12-11 01:46:14 +01:00
|
|
|
inThread?: boolean
|
2022-12-03 20:47:11 +01:00
|
|
|
disableDetails?: boolean
|
|
|
|
disableOnPress?: boolean
|
2022-12-16 00:21:53 +01:00
|
|
|
isConversation?: boolean
|
2022-12-03 20:47:11 +01:00
|
|
|
}
|
|
|
|
const StatusContext = createContext<ContextType>({} as ContextType)
|
|
|
|
|
|
|
|
export default StatusContext
|