Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

397 B
Raw Blame
'use client'

import type { ContactsFeatureContextValue } from './types'
import { createContext, use } from 'react'

export const ContactsFeatureContext = createContext<ContactsFeatureContextValue | null>(null)

export function useContactsFeatureContext() {
  const context = use(ContactsFeatureContext)
  if (!context) throw new Error('ContactsManagementProvider is required')
  return context
}