import type { ComponentPropsWithRef } from "react"

/**
 * Renders the Salesforce logo as an inline SVG and forwards received props to the root `<svg>`.
 *
 * @param props - Props forwarded to the SVG element (for example: `className`, `style`, `ref`, and `aria-*` attributes).
 * @returns An SVG element representing the Salesforce logo.
 */
export function Salesforce(props: ComponentPropsWithRef<"svg">) {
  return (
    <svg
      xmlns="http://www.w3.org/2000/svg"
      viewBox="0 0 24 24"
      role="img"
      aria-label="Salesforce"
      {...props}
    >
      <path
        fill="#039be5"
        d="M18.206 6.522c-.681 0-1.275.204-1.858.399c-.681-1.177-1.956-1.956-3.328-1.956c-1.07 0-2.043.487-2.734 1.168c-.779-.973-1.956-1.664-3.318-1.664c-2.267 0-4.213 1.858-4.213 4.126c0 .574.204 1.157.399 1.741a3.58 3.58 0 0 0-1.859 3.124c0 1.946 1.567 3.62 3.523 3.62c.292 0 .583 0 .778-.098c.39 1.469 1.858 2.55 3.62 2.55c1.654 0 3.026-.984 3.512-2.356c.496.205.983.4 1.47.4c1.274 0 2.442-.71 3.025-1.762c.302.078.613.078.886.078c2.54 0 4.592-2.034 4.592-4.67c.098-2.627-1.946-4.7-4.495-4.7"
      ></path>
    </svg>
  )
}
