import { Button } from '@components/common/ui/Button.js';
import { _ } from '@evershop/evershop/lib/locale/translate/_';
import React from 'react';

export function ShoppingCartEmpty() {
  return (
    <div
      className="empty-shopping-cart w-full flex justify-center"
      style={{ marginTop: '150px' }}
    >
      <div>
        <div className="text-center shopping-cart-heading">
          <h2>{_('Shopping cart')}</h2>
        </div>
        <div className="mt-5 text-center">
          <span>{_('Your cart is empty!')}</span>
        </div>
        <div className="flex justify-center mt-5">
          <Button size={'lg'} onClick={() => (window.location.href = '/')}>
            <span className="flex space-x-2">
              <span className="self-center">{_('CONTINUE SHOPPING')}</span>{' '}
              <svg
                className="self-center"
                style={{ width: '2rem', height: '2rem' }}
                xmlns="http://www.w3.org/2000/svg"
                fill="none"
                viewBox="0 0 24 24"
                stroke="currentColor"
              >
                <path
                  strokeLinecap="round"
                  strokeLinejoin="round"
                  strokeWidth={1}
                  d="M17 8l4 4m0 0l-4 4m4-4H3"
                />
              </svg>
            </span>
          </Button>
        </div>
      </div>
    </div>
  );
}
