import { forwardRef } from "react";
import { VehicleProvider } from "../../Contexts/VehicleContext";
import SendCommand from "../../Controls/SendCommand";

export default forwardRef(({
  ids,
  idCSV,
}) => {

  return (
    <div>
      <p>
        Send a remote command to the following VINs: {idCSV}.
      </p>
      <VehicleProvider>
        <SendCommand vins={ids} />
      </VehicleProvider>
    </div>
  );
});