import { iconVariants } from "./variants"

import type { IconProps } from "@/types/components/icon"

export default function OpenInNewIcon({
  className,
  color,
  ...props
}: IconProps) {
  const classNames = iconVariants({ className, color })
  return (
    <svg
      className={classNames}
      xmlns="http://www.w3.org/2000/svg"
      width="24"
      height="24"
      viewBox="0 0 24 24"
      fill="none"
      {...props}
    >
      <path
        d="M5.09998 20.775C4.58434 20.775 4.14293 20.5914 3.77575 20.2242C3.40857 19.857 3.22498 19.4156 3.22498 18.9V5.09998C3.22498 4.58434 3.40857 4.14293 3.77575 3.77575C4.14293 3.40857 4.58434 3.22498 5.09998 3.22498H10.9875C11.2458 3.22498 11.4666 3.31664 11.65 3.49998C11.8333 3.68331 11.925 3.90414 11.925 4.16248C11.925 4.42081 11.8333 4.64164 11.65 4.82498C11.4666 5.00831 11.2458 5.09998 10.9875 5.09998H5.09998V18.9H18.9V13.0125C18.9 12.7541 18.9916 12.5333 19.175 12.35C19.3583 12.1666 19.5791 12.075 19.8375 12.075C20.0958 12.075 20.3166 12.1666 20.5 12.35C20.6833 12.5333 20.775 12.7541 20.775 13.0125V18.9C20.775 19.4156 20.5914 19.857 20.2242 20.2242C19.857 20.5914 19.4156 20.775 18.9 20.775H5.09998ZM18.9 6.41248L10.3875 14.925C10.2125 15.1 9.99789 15.1875 9.74373 15.1875C9.48956 15.1875 9.27081 15.0958 9.08748 14.9125C8.90414 14.7291 8.81248 14.5104 8.81248 14.2562C8.81248 14.0021 8.90311 13.7843 9.08438 13.6031L17.5875 5.09998H14.7375C14.4791 5.09998 14.2583 5.00831 14.075 4.82498C13.8916 4.64164 13.8 4.42081 13.8 4.16248C13.8 3.90414 13.8916 3.68331 14.075 3.49998C14.2583 3.31664 14.4791 3.22498 14.7375 3.22498H20.775V9.26248C20.775 9.52081 20.6833 9.74164 20.5 9.92498C20.3166 10.1083 20.0958 10.2 19.8375 10.2C19.5791 10.2 19.3583 10.1083 19.175 9.92498C18.9916 9.74164 18.9 9.52081 18.9 9.26248V6.41248Z"
        fill="#26201E"
      />
    </svg>
  )
}
