2022-06-08 00:07:04 +08:00
|
|
|
import useBreakpoint from '@/web/hooks/useBreakpoint'
|
2022-05-29 17:53:27 +08:00
|
|
|
import { ReactQueryDevtools } from 'react-query/devtools'
|
2022-06-09 20:16:05 +08:00
|
|
|
import useIsMobile from '@/web/hooks/useIsMobile'
|
2022-05-29 17:53:27 +08:00
|
|
|
|
|
|
|
const Devtool = () => {
|
2022-06-09 20:16:05 +08:00
|
|
|
const isMobile = useIsMobile()
|
2022-05-29 17:53:27 +08:00
|
|
|
return (
|
|
|
|
<ReactQueryDevtools
|
|
|
|
initialIsOpen={false}
|
|
|
|
toggleButtonProps={{
|
|
|
|
style: {
|
|
|
|
position: 'fixed',
|
2022-06-08 00:07:04 +08:00
|
|
|
bottom: isMobile ? 'auto' : 0,
|
2022-05-29 17:53:27 +08:00
|
|
|
right: 0,
|
2022-06-09 20:16:05 +08:00
|
|
|
top: isMobile ? 0 : 'auto',
|
2022-05-29 17:53:27 +08:00
|
|
|
left: 'auto',
|
|
|
|
},
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
export default Devtool
|