"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 LogoDataDog({
  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
        fillRule="evenodd"
        clipRule="evenodd"
        d="M13.041 11.3598L11.7093 10.482L10.5987 12.337L9.30727 11.9597L8.16979 13.6955L8.2282 14.2418L14.4113 13.1027L14.0522 9.23956L13.041 11.3598ZM7.27464 9.69502L8.26688 9.55846C8.42712 9.63029 8.53921 9.65792 8.73182 9.70686C9.03178 9.78501 9.37831 9.86 9.89219 9.60109C10.0114 9.54188 10.2608 9.31376 10.3611 9.1843L14.4255 8.44703L14.84 13.465L7.87693 14.7201L7.27464 9.69502ZM14.8242 7.88658L14.4232 7.96315L13.6527 0L0.52002 1.52269L2.13822 14.6523L3.67512 14.4289C3.55277 14.2536 3.36096 14.0413 3.03495 13.7697C2.58185 13.394 2.74209 12.7546 3.00969 12.3512C3.36253 11.67 5.18361 10.8033 5.0802 9.71397C5.0431 9.3177 4.97995 8.80225 4.6121 8.44861C4.59869 8.59543 4.62316 8.73673 4.62316 8.73673C4.62316 8.73673 4.47239 8.54412 4.39661 8.28126C4.32162 8.18022 4.2632 8.14865 4.18348 8.01367C4.12664 8.16917 4.13454 8.34994 4.13454 8.34994C4.13454 8.34994 4.0114 8.05787 3.99087 7.81159C3.91746 7.9221 3.89931 8.13128 3.89931 8.13128C3.89931 8.13128 3.73906 7.67108 3.77537 7.42322C3.70196 7.20772 3.48489 6.77988 3.54646 5.80738C3.94746 6.0884 4.82997 6.0213 5.17335 5.51453C5.2878 5.34639 5.36595 4.88856 5.11651 3.98631C4.95627 3.4077 4.56001 2.54571 4.40529 2.21812L4.38714 2.23154C4.46844 2.49519 4.63658 3.04696 4.7013 3.31535C4.89628 4.12761 4.94838 4.4102 4.85681 4.78436C4.77866 5.10958 4.59237 5.32271 4.11875 5.5611C3.64513 5.80028 3.01679 5.21851 2.97653 5.18694C2.51633 4.82067 2.16033 4.22233 2.12086 3.93184C2.07981 3.61373 2.30399 3.4227 2.41766 3.163C2.25584 3.20957 2.07508 3.29167 2.07508 3.29167C2.07508 3.29167 2.29057 3.06827 2.55659 2.87567C2.6671 2.80305 2.73104 2.75647 2.84708 2.66017C2.67894 2.6578 2.54238 2.66175 2.54238 2.66175C2.54238 2.66175 2.82261 2.51019 3.11309 2.40047C2.90075 2.391 2.6971 2.39889 2.6971 2.39889C2.6971 2.39889 3.32228 2.11945 3.81563 1.91422C4.15506 1.77529 4.4866 1.81634 4.67289 2.08551C4.91759 2.43836 5.17414 2.63018 5.7188 2.74937C6.05349 2.60097 6.15453 2.52519 6.57447 2.41073C6.9439 2.00421 7.23439 1.95132 7.23439 1.95132C7.23439 1.95132 7.09072 2.08314 7.05204 2.29075C7.26201 2.12577 7.49172 1.98763 7.49172 1.98763C7.49172 1.98763 7.40252 2.09735 7.31964 2.2718L7.33858 2.30022C7.58329 2.1534 7.87062 2.03815 7.87062 2.03815C7.87062 2.03815 7.78852 2.14235 7.69222 2.27654C7.87693 2.27496 8.25109 2.28443 8.39555 2.30101C9.2528 2.31995 9.43041 1.38534 9.75958 1.26851C10.1716 1.12169 10.3555 1.03249 11.0573 1.72161C11.6596 2.31364 12.13 3.37218 11.8964 3.60978C11.7006 3.80633 11.3138 3.53321 10.886 2.99881C10.6595 2.71622 10.489 2.38231 10.4084 1.95763C10.3406 1.59926 10.0777 1.39166 10.0777 1.39166C10.0777 1.39166 10.23 1.73187 10.23 2.03183C10.23 2.19602 10.2506 2.80857 10.5134 3.15195C10.4874 3.20247 10.4755 3.4006 10.4463 3.43849C10.1408 3.06906 9.48409 2.80463 9.37752 2.72648C9.73984 3.02328 10.5726 3.70529 10.8923 4.35889C11.1946 4.97697 11.0162 5.54373 11.1694 5.69056C11.2128 5.73239 11.8198 6.48861 11.9367 6.86908C12.1403 7.53136 11.9485 8.22758 11.6825 8.65937L10.9381 8.77541C10.8292 8.74541 10.7558 8.72962 10.6579 8.67358C10.7116 8.57806 10.8189 8.34046 10.8197 8.29152L10.7779 8.21811C10.5458 8.54649 10.1582 8.86539 9.83535 9.04853C9.41304 9.28771 8.92679 9.25061 8.61026 9.15272C7.71116 8.87566 6.86101 8.26784 6.65657 8.10839C6.65657 8.10839 6.65025 8.23548 6.68893 8.26468C6.91548 8.52044 7.43489 8.98301 7.93692 9.30507L6.86733 9.42269L7.37332 13.3608C7.14913 13.3932 7.1144 13.409 6.86891 13.4437C6.65262 12.6796 6.23899 12.18 5.78668 11.8895C5.38805 11.6329 4.83786 11.5753 4.31057 11.6795L4.27662 11.719C4.64289 11.6811 5.07546 11.734 5.51909 12.015C5.95482 12.2905 6.30609 13.0025 6.43555 13.4311C6.60131 13.9789 6.71577 14.5646 6.26978 15.1859C5.95245 15.6271 5.02731 15.871 4.27899 15.3437C4.4787 15.665 4.74867 15.9279 5.11177 15.9768C5.6517 16.0502 6.164 15.9563 6.51606 15.5948C6.81681 15.2853 6.97705 14.638 6.93443 13.9568L7.41042 13.8881L7.5825 15.1109L15.4667 14.1613L14.8242 7.88658ZM10.0272 4.56492C10.0051 4.61544 9.97034 4.6478 10.0224 4.8112L10.0256 4.82067L10.0335 4.84198L10.0548 4.89093C10.1487 5.08195 10.2514 5.26272 10.4226 5.35507C10.4668 5.34797 10.5134 5.34244 10.5608 5.34008C10.7218 5.33297 10.8236 5.35823 10.8884 5.39375C10.8939 5.36139 10.8955 5.31482 10.8915 5.24535C10.8789 5.00302 10.9397 4.59097 10.474 4.37389C10.2979 4.29258 10.0516 4.31705 9.96955 4.41967C9.98455 4.42125 9.99796 4.42441 10.0082 4.42836C10.1337 4.47098 10.0501 4.51361 10.0272 4.56492ZM11.3328 6.82646C11.272 6.79251 10.9863 6.80593 10.7858 6.82961C10.4037 6.87461 9.99086 7.00722 9.90008 7.07748C9.73589 7.20456 9.8101 7.42638 9.93166 7.51715C10.2727 7.77133 10.571 7.94262 10.886 7.90079C11.0794 7.87553 11.2499 7.56925 11.3707 7.29061C11.4543 7.09958 11.4543 6.89355 11.3328 6.82646ZM7.94876 4.86488C8.05691 4.76226 7.41199 4.62807 6.91153 4.96907C6.5429 5.22088 6.53106 5.76081 6.88391 6.06629C6.91943 6.09629 6.94864 6.11839 6.97547 6.13576C7.07888 6.08682 7.1965 6.03788 7.33148 5.99446C7.5604 5.92026 7.74984 5.88158 7.90614 5.86185C7.98113 5.77818 8.06796 5.63135 8.04586 5.36534C8.01665 5.00302 7.74274 5.06064 7.94876 4.86488Z"
        fill="#632CA6"
        style={{
          fill: "#632ca6",
          fillOpacity: "1",
        }}
      />
    </svg>
  );
}
