import type { Exercise } from '@inject/graphql/fragment-types'
import { createContext } from 'react'
import { DUMMY_EXERCISE } from './utilities'

interface ExerciseContextProps {
  exercise: Exercise
}

// TODO: why the context when we have the data anyway???
const ExerciseContext = createContext<ExerciseContextProps>({
  exercise: DUMMY_EXERCISE,
})

export default ExerciseContext
