Spaces:
Build error
Build error
File size: 389 Bytes
a8b3f00 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
import { useMemo } from 'react'
import { getSelectedDatasetsMode } from './utils'
import type {
DataSet,
SelectedDatasetsMode,
} from '@/models/datasets'
export const useSelectedDatasetsMode = (datasets: DataSet[]) => {
const selectedDatasetsMode: SelectedDatasetsMode = useMemo(() => {
return getSelectedDatasetsMode(datasets)
}, [datasets])
return selectedDatasetsMode
}
|