Skip to content

A modern platform for visual, flexible, and extensible graph-based investigations. For cybersecurity analysts and investigators.

283 B
Raw Blame
import { useContext } from 'react'
import { TutorialContext } from './tutorial-provider'

export function useTutorial() {
  const context = useContext(TutorialContext)

  if (!context) {
    throw new Error('useTutorial must be used within TutorialProvider')
  }

  return context
}