"use client";

import React from "react";
import type { CSSProperties } from "react";

import { useIconSize } from "../contexts/IconSizeContext";

type Props = {
  size?: number;
  color?: string;
  style?: CSSProperties;
};

export default function LogoSplitbee({
  color = "currentcolor",
  size,
  ...props
}: Props) {
  const iconSize = useIconSize();
  const height = size || iconSize.size;
  const width = size || iconSize.size;
  const style = { color, ...props.style };
  return (
    <svg
      {...props}
      data-testid="geist-icon"
      height={height}
      strokeLinejoin="round"
      style={style}
      viewBox="0 0 16 16"
      width={width}
    >
      <path
        d="M4.78979 13.4652V8.14408L0.531982 11.4689L4.78928 13.4647L4.78979 13.4652Z"
        fill="white"
      />
      <path
        d="M4.78982 8.14408L4.4623 7.72458C4.54083 7.66321 4.63502 7.62514 4.73414 7.6147C4.83326 7.60427 4.93332 7.6219 5.02291 7.66557C5.1125 7.70925 5.18801 7.77722 5.24085 7.86173C5.29368 7.94624 5.3217 8.0439 5.32173 8.14357L4.78982 8.14408ZM4.78982 13.4652H5.32173C5.32177 13.5548 5.2992 13.6429 5.25611 13.7214C5.21302 13.7999 5.1508 13.8663 5.07523 13.9143C4.99966 13.9624 4.91318 13.9906 4.8238 13.9963C4.73443 14.002 4.64506 13.9851 4.56398 13.947L4.78982 13.4652ZM0.532009 11.4689L0.306166 11.9507C0.223835 11.9121 0.15277 11.8531 0.0997577 11.7792C0.0467453 11.7053 0.0135552 11.6191 0.00335663 11.5288C-0.00684198 11.4384 0.00629142 11.3469 0.0415028 11.2631C0.0767141 11.1793 0.132828 11.1059 0.204486 11.0499L0.532009 11.4689ZM5.32122 8.14357V13.4647H4.2574V8.14408L5.32173 8.14357H5.32122ZM4.56398 13.947L0.306677 11.9512L0.758875 10.9876L5.01515 12.9834L4.56398 13.947ZM0.205508 11.0499L4.46179 7.72458L5.11734 8.56306L0.860555 11.8894L0.205508 11.0499Z"
        fill="#121212"
      />
      <path
        d="M7.73193 1.09029C8.13559 0.916562 8.67567 0.984009 9.26276 1.37591C9.84474 1.76424 10.4099 2.43769 10.788 3.31756C11.1661 4.19743 11.2662 5.07117 11.1472 5.76045C11.0276 6.45638 10.7052 6.89376 10.301 7.06749C9.89737 7.24121 9.3578 7.17428 8.77071 6.78237C8.18821 6.39404 7.62309 5.71958 7.24499 4.84073C6.86688 3.96086 6.76724 3.08712 6.88578 2.39732C7.00535 1.70191 7.32827 1.26401 7.73193 1.09029Z"
        fill="white"
        stroke="#121212"
        strokeWidth={1.06433}
      />
      <path
        d="M3.18219 11.2292C3.75957 13.7646 6.7078 15.4712 10.214 14.7498C13.7452 14.0227 15.8805 11.2451 15.3072 8.72964C14.7355 6.21981 11.5966 4.53262 8.07512 5.24694C4.04468 6.48346 2.69167 9.07607 3.18219 11.2292Z"
        fill="#FFC700"
      />
      <path
        d="M3.18219 11.2292C3.75957 13.7646 6.7078 15.4712 10.214 14.7498C13.7452 14.0227 15.8805 11.2451 15.3072 8.72964C14.7355 6.21981 11.5966 4.53262 8.07512 5.24694C4.04468 6.48346 2.69167 9.07607 3.18219 11.2292Z"
        fill="url(#paint0_linear_872_3172)"
      />
      <path
        d="M3.18219 11.2292C3.75957 13.7646 6.7078 15.4712 10.214 14.7498C13.7452 14.0227 15.8805 11.2451 15.3072 8.72964C14.7355 6.21981 11.5966 4.53262 8.07512 5.24694C4.04468 6.48346 2.69167 9.07607 3.18219 11.2292Z"
        stroke="#121212"
        strokeWidth={1.06433}
        fill="transparent"
      />
      <path
        d="M10.0408 14.2076C10.182 14.1925 10.3235 14.233 10.4353 14.3204C10.5471 14.4079 10.6204 14.5355 10.6397 14.6762C10.6492 14.745 10.6448 14.815 10.6267 14.8821C10.6086 14.9491 10.5772 15.0119 10.5344 15.0666C10.4916 15.1213 10.4383 15.1669 10.3775 15.2006C10.3168 15.2343 10.2499 15.2554 10.1809 15.2628L10.0408 14.2076ZM8.80944 4.9557C8.9506 4.94056 9.09209 4.98103 9.2039 5.06851C9.31571 5.15599 9.38902 5.28359 9.40828 5.42425C9.41778 5.49305 9.41335 5.56307 9.39527 5.63013C9.37718 5.6972 9.34582 5.75994 9.30302 5.81465C9.26022 5.86936 9.20688 5.91492 9.14614 5.94862C9.0854 5.98232 9.01851 6.00347 8.94944 6.01083L8.80944 4.9557ZM5.851 10.4792C6.00684 11.6518 6.50758 12.6507 7.2316 13.3175C7.94694 13.9767 8.90346 14.3343 10.0408 14.2076L10.1809 15.2628C8.73075 15.4247 7.46205 14.9613 6.51524 14.0896C5.57661 13.2245 4.97726 11.9798 4.79331 10.5977L5.851 10.4792ZM8.94944 6.01083C7.80592 6.13857 6.96999 6.68325 6.44831 7.46195C5.92151 8.24883 5.69464 9.30753 5.85049 10.4792L4.79331 10.5977C4.60937 9.21454 4.8674 7.89064 5.5572 6.86055C6.2521 5.82279 7.36547 5.11716 8.80944 4.9557L8.94944 6.01083Z"
        fill="#121212"
      />
      <path
        d="M12.3121 13.4049C12.4458 13.3574 12.5928 13.3639 12.7218 13.4231C12.8508 13.4823 12.9516 13.5894 13.0029 13.7217C13.0283 13.7863 13.0406 13.8553 13.0389 13.9247C13.0372 13.9941 13.0216 14.0625 12.993 14.1258C12.9644 14.189 12.9234 14.2459 12.8724 14.2931C12.8215 14.3402 12.7616 14.3767 12.6963 14.4003L12.3121 13.4049ZM10.3541 4.60671C10.4933 4.57872 10.6379 4.60607 10.7572 4.68297C10.8766 4.75986 10.9612 4.88023 10.9933 5.01854C11.0587 5.30468 10.8783 5.5852 10.5906 5.64447L10.3541 4.60671ZM8.32812 10.2845C8.50236 11.0494 8.85441 12.1076 9.49259 12.8286C9.80326 13.1796 10.1691 13.4361 10.6055 13.5541C11.0403 13.6711 11.5967 13.6645 12.3121 13.4049L12.6963 14.4003C11.8159 14.7201 11.0321 14.7615 10.3433 14.576C9.6561 14.3906 9.11449 13.9925 8.69499 13.5183C7.87184 12.5884 7.47125 11.312 7.28577 10.4986L8.32812 10.2845ZM10.5906 5.64447C8.93361 5.98528 7.80286 7.97853 8.32812 10.2845L7.28577 10.4986C6.67773 7.82728 7.93315 5.10489 10.3541 4.60671L10.5906 5.64447Z"
        fill="#121212"
      />
      <path
        d="M2.94413 3.00996C2.69018 3.36917 2.64369 3.91078 2.90478 4.56634C3.16333 5.21679 3.70494 5.91016 4.48671 6.46251C5.26848 7.01537 6.10236 7.29537 6.80135 7.32245C7.50647 7.35005 8.0021 7.12574 8.25553 6.76653C8.50948 6.40784 8.55598 5.86622 8.29539 5.21015C8.03633 4.56021 7.49523 3.86735 6.71346 3.31449C5.9317 2.76112 5.09782 2.48163 4.39883 2.45455C3.6937 2.42696 3.19807 2.65127 2.94413 3.00996Z"
        fill="white"
        stroke="#121212"
        strokeWidth={1.06433}
      />
      <path
        d="M11.935 9.08064C11.6479 9.1428 11.3647 8.96045 11.3026 8.67333C11.2404 8.38622 11.4228 8.10308 11.7099 8.04091C11.997 7.97875 12.2801 8.1611 12.3423 8.44821C12.4045 8.73533 12.2221 9.01847 11.935 9.08064Z"
        fill="#121212"
        stroke="#121212"
        strokeWidth={0.531908}
      />
      <defs>
        <linearGradient
          id="paint0_linear_872_3172"
          x1="7.93256"
          y1="4.73292"
          x2="10.9569"
          y2="15.1248"
          gradientUnits="userSpaceOnUse"
        >
          <stop stopColor="#FFE073" />
          <stop offset="1" stopColor="#FFA800" />
        </linearGradient>
      </defs>
    </svg>
  );
}
