dify / web /context /dataset-detail.ts
Severian's picture
initial commit
a8b3f00
raw
history blame contribute delete
360 Bytes
import { createContext, useContext } from 'use-context-selector'
import type { DataSet } from '@/models/datasets'
const DatasetDetailContext = createContext<{ indexingTechnique?: string; dataset?: DataSet; mutateDatasetRes?: () => void }>({})
export const useDatasetDetailContext = () => useContext(DatasetDetailContext)
export default DatasetDetailContext