import React from 'react'
import VehicleInstance from './instance/vehicleInstance'
import { useVehicleStore } from '../../../../store/simulation/useVehicleStore'

function VehicleInstances() {

    const { vehicles } = useVehicleStore();

    return (
        <>

            {vehicles.map((val: VehicleStatus) =>
                <VehicleInstance agvDetail={val} key={val.modelUuid} />
            )}

        </>
    )
}

export default VehicleInstances