IndoorFloor.tsx 881 B

1234567891011121314151617181920212223
  1. import React from 'react'
  2. import { Image } from 'react-native-svg'
  3. interface Building {
  4. id: number
  5. name: string
  6. floors: number
  7. }
  8. function IndoorFloor(props) {
  9. const floors = [
  10. <Image height={"100%"} width={"100%"} href={require('./MainMapComponent/images/basement.png')} />,
  11. <Image height={'100%'} width="100%" href={require('./MainMapComponent/images/firstfloor.png')} />,
  12. <Image height={"100%"} width={"100%"} href={require('./MainMapComponent/images/secondfloor.png')} />,
  13. <Image height={"100%"} width={"100%"} href={require('./MainMapComponent/images/thirdfloor.png')} />,
  14. <Image height={"100%"} width={"100%"} href={require('./MainMapComponent/images/fourthfloor.png')} />,
  15. <Image height={"100%"} width={"100%"} href={require('./MainMapComponent/images/fifthfloor.png')} />,
  16. ]
  17. return floors[props.floorNum]
  18. }
  19. export default IndoorFloor