dify/web/context/dataset-detail.ts

7 lines
238 B
TypeScript
Raw Normal View History

2023-05-15 08:51:32 +08:00
import { createContext } from 'use-context-selector'
import type { DataSet } from '@/models/datasets'
2023-05-15 08:51:32 +08:00
const DatasetDetailContext = createContext<{ indexingTechnique?: string; dataset?: DataSet }>({})
2023-05-15 08:51:32 +08:00
export default DatasetDetailContext