/*
 * This file is part of the Sylius package.
 *
 * (c) Paweł Jędrzejewski
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

/* eslint-env browser */

const SyliusRemoveFromCart = () => {
  /* const element = el;
  const redirectUrl = element.getAttribute('data-js-remove-from-cart-redirect-url');
  const csrfToken = element.getAttribute('data-js-remove-from-cart-csrf-token');
  const url = element.getAttribute('data-js-remove-from-cart-api-url');

  element.addEventListener('click', (e) => {
    e.preventDefault();

    axios.delete(url, { data: { _csrf_token: csrfToken } })
      .then(() => { window.location.replace(redirectUrl); });
  }); */
};

export default SyliusRemoveFromCart;
