File size: 360 Bytes
a8b3f00
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
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