defmodule ToolboxWeb.Components.Icons.ElixirIcon do
  use Phoenix.Component

  attr :class, :string, default: nil

  def elixir_icon(assigns) do
    ~H"""
    <svg
      viewBox="0 0 19 20"
      fill="none"
      xmlns="http://www.w3.org/2000/svg"
      class={"fill-accent dark:fill-secondary-text #{@class}"}
    >
      <g clip-path="url(#clip0_1771_2088)">
        <path
          fill-rule="evenodd"
          clip-rule="evenodd"
          d="M9.71019 0.5C10.2184 0.5 10.6305 0.912062 10.6305 1.41912C10.6305 1.81813 10.8561 2.39406 11.3929 3.22294C11.7788 3.82025 12.2574 4.44844 12.7834 5.14313C12.9703 5.38775 13.1619 5.64108 13.3582 5.90313C14.7915 7.81738 16.4528 10.2244 16.4528 12.8607C16.4528 15.0219 15.618 16.7082 14.3189 17.8434C13.0364 18.9621 11.3584 19.5 9.71138 19.5C8.06431 19.5 6.384 18.9621 5.10387 17.8434C3.80237 16.7082 2.96875 15.0219 2.96875 12.8607C2.96875 10.2244 4.63006 7.81737 6.06337 5.90194C6.25971 5.64069 6.45129 5.38735 6.63813 5.14194C7.16419 4.44844 7.64275 3.82025 8.02869 3.22294C8.56544 2.39406 8.79106 1.81813 8.79106 1.41912C8.79106 0.912062 9.20312 0.5 9.71019 0.5ZM9.71019 4.00312L9.57244 4.22163C9.14494 4.88306 8.60581 5.59319 8.06431 6.30331C7.8854 6.53765 7.70925 6.77119 7.53588 7.00394C6.05625 8.97875 4.807 10.9203 4.807 12.8619C4.807 14.5125 5.42806 15.6881 6.31275 16.46C7.21525 17.2473 8.44669 17.6629 9.71019 17.6629C10.9737 17.6629 12.2063 17.2473 13.1088 16.4588C13.9935 15.6869 14.6146 14.5125 14.6146 12.8607C14.6146 10.9215 13.3641 8.97994 11.8857 7.00631C11.7115 6.77198 11.535 6.53844 11.3561 6.30569C10.8157 5.59319 10.2754 4.88425 9.84794 4.22281L9.71019 4.00312ZM7.25919 12.1446C7.76625 12.1446 8.17831 12.5567 8.17831 13.0649C8.17831 13.3784 8.34456 13.7691 8.67588 14.1004C9.006 14.4306 9.39669 14.5968 9.71019 14.5968C9.95395 14.5968 10.1877 14.6936 10.3601 14.866C10.5325 15.0384 10.6293 15.2722 10.6293 15.5159C10.6293 15.7597 10.5325 15.9935 10.3601 16.1659C10.1877 16.3382 9.95395 16.4351 9.71019 16.4351C8.79938 16.4351 7.96456 15.9886 7.37556 15.3996C6.78656 14.8117 6.34006 13.9769 6.34006 13.0649C6.34006 12.5567 6.75094 12.1446 7.25919 12.1446Z"
        />
      </g>
      <defs>
        <clipPath>
          <rect width="19" height="19" fill="white" transform="translate(0 0.5)" />
        </clipPath>
      </defs>
    </svg>
    """
  end
end
