1- import { Box , Button , Checkbox , Link , Slider , TextField , Typography } from '@mui/material' ;
2- import { ChangeEvent , useCallback , useEffect , useRef , useState } from 'react' ;
3- import { Niivue , SHOW_RENDER } from '@niivue/niivue' ;
41import { Download , OpenInNew } from '@mui/icons-material' ;
52import ImageIcon from '@mui/icons-material/Image' ;
3+ import { Box , Button , Checkbox , Link , Typography } from '@mui/material' ;
4+ import { Niivue , SHOW_RENDER } from '@niivue/niivue' ;
5+ import { ChangeEvent , useCallback , useEffect , useRef , useState } from 'react' ;
66import ThresholdSlider from './ThresholdSlider' ;
7- import StateHandlerComponent from 'components/StateHandlerComponent/StateHandlerComponent' ;
8-
9- let thresholdDebounce : NodeJS . Timeout ;
107
118const NiiVueVisualizer : React . FC < { file : string ; filename : string ; neurovaultLink ?: string } > = ( {
129 file,
@@ -20,7 +17,6 @@ const NiiVueVisualizer: React.FC<{ file: string; filename: string; neurovaultLin
2017 const [ disableNegatives , setDisableNegatives ] = useState ( false ) ;
2118 const [ showCrosshairs , setShowCrosshairs ] = useState ( true ) ;
2219 const [ brainCoordinateString , setBrainCoordinateString ] = useState ( '' ) ;
23- const [ isLoading , setIsLoading ] = useState ( false ) ;
2420
2521 const [ threshold , setThreshold ] = useState < {
2622 min : number ;
@@ -219,7 +215,6 @@ const NiiVueVisualizer: React.FC<{ file: string; filename: string; neurovaultLin
219215
220216 return (
221217 < Box >
222- { /* <StateHandlerComponent isLoading={isLoading} isError={false}> */ }
223218 < Box sx = { { marginBottom : '10px' , display : 'flex' , justifyContent : 'space-between' } } >
224219 < Box width = "250px" >
225220 < ThresholdSlider
@@ -265,7 +260,6 @@ const NiiVueVisualizer: React.FC<{ file: string; filename: string; neurovaultLin
265260 </ Box >
266261 </ Box >
267262 </ Box >
268- { /* </StateHandlerComponent> */ }
269263 < Box sx = { { height : '32px' } } >
270264 { brainCoordinateString && (
271265 < Box
0 commit comments