import type { ComponentPropsWithRef } from "react"

/**
 * Renders the Kakao logo as an inline SVG.
 *
 * The SVG has viewBox "0 0 576 512", role "img", and aria-label "Kakao". All other props (including ref) are forwarded to the root `<svg>` element.
 *
 * @param props - Standard SVG attributes and ref forwarded to the root element
 * @returns The SVG element representing the Kakao logo
 */
export function Kakao(props: ComponentPropsWithRef<"svg">) {
  return (
    <svg
      xmlns="http://www.w3.org/2000/svg"
      viewBox="0 0 576 512"
      role="img"
      aria-label="Kakao"
      {...props}
    >
      <path
        fill="currentColor"
        d="M288 2.5c159.1 0 288 101.7 288 227.1S447.1 456.7 288 456.7c-17.5 0-34.6-1.2-51.2-3.6c-16.6 11.7-112.6 79.1-121.7 80.4c0 0-3.7 1.4-6.9-.4s-2.6-6.7-2.6-6.7c1-6.6 25-89.2 29.4-104.5C53.9 381.8 0 310.6 0 229.5c0-125.4 128.9-227 288-227M86.2 161.7c-9 0-16.3 7.3-16.3 16.3s7.3 16.3 16.3 16.3h25.9V293c0 8.8 7.5 15.9 16.6 15.9s16.6-7.1 16.6-15.9v-98.7h25.9c9 0 16.3-7.3 16.3-16.3s-7.3-16.3-16.3-16.3H86.1zm140.8 0c-10.8.2-19.3 8.4-22.1 16.4l-39.7 104.6c-5 15.7-.6 21.5 3.9 23.6c3.2 1.5 6.9 2.3 10.6 2.3c6.9 0 12.2-2.8 13.8-7.3l8.2-21.6h50.7l8.2 21.5c1.6 4.5 6.9 7.3 13.8 7.3c3.7 0 7.3-.8 10.6-2.3c4.6-2.1 9-7.9 3.9-23.6l-39.7-104.5c-2.8-8-11.3-16.2-22.2-16.4m180.9 0c-9.2 0-16.6 7.5-16.6 16.6V292c0 9.2 7.5 16.6 16.6 16.6s16.6-7.5 16.6-16.6v-36.2l5.8-5.8l38.9 51.6c3.2 4.2 8 6.6 13.3 6.6c3.6 0 7.1-1.1 10-3.3c3.5-2.7 5.8-6.6 6.4-11s-.5-8.8-3.2-12.3l-40.9-54.2l37.9-37.8c2.6-2.6 3.9-6.2 3.7-10.1s-2-7.6-4.9-10.5c-3.1-3.1-7.3-4.9-11.4-4.9c-3.6 0-6.8 1.3-9.2 3.7l-46.3 46.4v-35.7c0-9.2-7.5-16.6-16.6-16.6zm-91.3 0c-9.3 0-16.9 7.5-16.9 16.6v112.8c0 8.4 7.1 15.2 15.9 15.3h53.3c8.8 0 15.9-6.9 15.9-15.3s-7.2-15.2-15.9-15.2h-35.3v-97.6c0-9.2-7.6-16.6-17-16.6m-73 88.6h-33.2l16.6-47.1z"
      />
    </svg>
  )
}
