import { QueryKeyTimeline } from '@utils/queryHooks/timeline'
import { createContext } from 'react'

type ContextType = {
  queryKey?: QueryKeyTimeline
  rootQueryKey?: QueryKeyTimeline

  status?: Mastodon.Status

  reblogStatus?: Mastodon.Status // When it is a reblog, pass the root status
  ownAccount?: boolean
  spoilerHidden?: boolean
  copiableContent?: React.MutableRefObject<{
    content: string
    complete: boolean
  }>
  detectedLanguage?: React.MutableRefObject<string>

  highlighted?: boolean
  inThread?: boolean
  disableDetails?: boolean
  disableOnPress?: boolean
  isConversation?: boolean
}
const StatusContext = createContext<ContextType>({} as ContextType)

export default StatusContext
