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

  attr :class, :string, default: nil

  def path_icon(assigns) do
    ~H"""
    <svg
      viewBox="0 0 24 24"
      fill="none"
      xmlns="http://www.w3.org/2000/svg"
      class={"stroke-accent dark:stroke-secondary-text fill-accent dark:fill-secondary-text #{@class}"}
    >
      <path d="M16.4615 18C15.8852 18 15.3719 17.8286 14.9216 17.4857C14.4713 17.1429 14.1745 16.7048 14.0313 16.1714H9.07692C8.12077 16.1714 7.30477 15.8368 6.62892 15.1675C5.95323 14.4981 5.61538 13.6899 5.61538 12.7429C5.61538 11.7958 5.95323 10.9876 6.62892 10.3182C7.30477 9.64891 8.12077 9.31429 9.07692 9.31429H10.9231C11.4943 9.31429 11.9832 9.11269 12.3898 8.70949C12.7966 8.30629 13 7.82164 13 7.25554C13 6.6893 12.7966 6.2051 12.3898 5.80297C11.9832 5.40099 11.4943 5.2 10.9231 5.2H5.96869C5.81592 5.73333 5.51677 6.17143 5.07123 6.51429C4.62569 6.85714 4.11477 7.02857 3.53846 7.02857C2.83338 7.02857 2.234 6.78423 1.74031 6.29554C1.24677 5.80686 1 5.21349 1 4.51543C1 3.81722 1.24677 3.22347 1.74031 2.73417C2.234 2.24472 2.83338 2 3.53846 2C4.11477 2 4.62569 2.17143 5.07123 2.51429C5.51677 2.85714 5.81592 3.29524 5.96869 3.82857H10.9231C11.8792 3.82857 12.6952 4.1632 13.3711 4.83246C14.0468 5.50187 14.3846 6.3101 14.3846 7.25714C14.3846 8.20419 14.0468 9.01242 13.3711 9.68183C12.6952 10.3511 11.8792 10.6857 10.9231 10.6857H9.07692C8.50569 10.6857 8.01677 10.8873 7.61015 11.2905C7.20338 11.6937 7 12.1784 7 12.7445C7 13.3107 7.20338 13.7949 7.61015 14.197C8.01677 14.599 8.50569 14.8 9.07692 14.8H14.0313C14.1841 14.2667 14.4832 13.8286 14.9288 13.4857C15.3743 13.1429 15.8852 12.9714 16.4615 12.9714C17.1666 12.9714 17.766 13.2158 18.2597 13.7045C18.7532 14.1931 19 14.7865 19 15.4846C19 16.1828 18.7532 16.7765 18.2597 17.2658C17.766 17.7553 17.1666 18 16.4615 18ZM3.53846 5.65714C3.85923 5.65714 4.13169 5.54606 4.35585 5.32389C4.58015 5.10187 4.69231 4.832 4.69231 4.51429C4.69231 4.19657 4.58015 3.92671 4.35585 3.70469C4.13169 3.48251 3.85923 3.37143 3.53846 3.37143C3.21769 3.37143 2.94523 3.48251 2.72108 3.70469C2.49677 3.92671 2.38462 4.19657 2.38462 4.51429C2.38462 4.832 2.49677 5.10187 2.72108 5.32389C2.94523 5.54606 3.21769 5.65714 3.53846 5.65714Z" />
    </svg>
    """
  end
end
