import { Button } from 'antd';
import { IconWrapper } from '../../icon-wrapper';
import { HiArrowLeft } from 'react-icons/hi2';
import { useNavigate } from 'react-router-dom';
import Image4040 from '../../../assets/images/404.svg';

export function NotFoundPage() {
  const navigate = useNavigate();

  function handleBack() {
    navigate(-1);
  }

  return (
    <div className="bg-white  ">
      <div className="container min-h-screen px-6 py-12 mx-auto lg:flex lg:items-center lg:gap-12">
        <div className="wf-ull lg:w-1/2">
          <h1 className="mt-3 text-2xl font-semibold text-gray-800  md:text-3xl">Page not found</h1>
          <p className="mt-4 text-gray-500 ">
            Sorry, the page you are looking for doesn't exist. Here are some helpful links:
          </p>

          <div className="flex items-center mt-6 gap-x-3">
            <Button
              icon={
                <IconWrapper>
                  <HiArrowLeft />
                </IconWrapper>
              }
              onClick={() => handleBack()}
              className="w-[100px]"
            >
              Go back
            </Button>
          </div>
        </div>

        <div className="relative w-full mt-12 lg:w-1/2 lg:mt-0">
          <img className="w-full max-w-lg lg:mx-auto" src={Image4040} alt="" />
        </div>
      </div>
    </div>
  );
}
