index.tsx 600 B

12345678910111213141516171819202122232425
  1. import { memo } from 'react'
  2. import { MiniMap } from 'reactflow'
  3. import ZoomInOut from './zoom-in-out'
  4. import Control from './control'
  5. const Operator = () => {
  6. return (
  7. <>
  8. <MiniMap
  9. style={{
  10. width: 102,
  11. height: 72,
  12. }}
  13. className='!absolute !left-4 !bottom-14 z-[9] !m-0 !w-[102px] !h-[72px] !border-[0.5px] !border-black/[0.08] !rounded-lg !shadow-lg'
  14. />
  15. <div className='flex items-center mt-1 gap-2 absolute left-4 bottom-4 z-[9]'>
  16. <ZoomInOut />
  17. <Control />
  18. </div>
  19. </>
  20. )
  21. }
  22. export default memo(Operator)