import Link from "next/link";

export default function Page({ title, link }: { title: string; link: string }) {
  return (
    <div>
      <Link
        href={link}
        className="mobile-container flex mt-[24px] align-center"
      >
        <span className="text-[20px] text-primary underline underline-offset-4 font-medium">
          {title}
        </span>
        <svg
          width="24"
          height="25"
          viewBox="0 0 24 25"
          fill="none"
          xmlns="http://www.w3.org/2000/svg"
          className="ms-1 mt-[1px] rotate-180 w-[32px] h-[32px]"
        >
          <path
            d="M15 18.334L9 12.334L15 6.33398"
            stroke="#02bc71"
            strokeWidth="2"
            strokeLinecap="round"
            strokeLinejoin="round"
          ></path>
        </svg>
      </Link>
    </div>
  );
}
