mirror of
https://gitee.com/dify_ai/dify.git
synced 2024-11-30 18:27:53 +08:00
9 lines
360 B
TypeScript
9 lines
360 B
TypeScript
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
|