'use client'

import { createContext, useContext } from 'react'

export interface ConnectingFrom {
  nodeId: string
  handleId: string
  handleType: string
}

export const ConnectionContext = createContext<ConnectingFrom | null>(null)

export function useConnectionState() {
  return useContext(ConnectionContext)
}
