import { View } from 'react-native'
import React from 'react'
import { AddressData } from '..'

interface AddressDataProps {
  color?: string
  rideDetails?: string | any
}

export function Address({ color, rideDetails }: AddressDataProps) {
  return (
    <View>
      <AddressData
        color={color}
        locationDetails={rideDetails?.locations}
        rideDetails={rideDetails}
      />
    </View>
  )
}
