import React from 'react';

import { forwardRef } from '../../utils/react';
import { Icon } from '../../icon';

export const CheckIcon = forwardRef<typeof Icon>(
  function CheckIcon(props, ref) {
    return (
      <Icon ref={ref} {...props}>
        <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 20 20">
          <path
            stroke="currentColor"
            strokeWidth="1.9"
            d="m2 9.3 5.7 5.2L18 5"
          />
        </svg>
      </Icon>
    );
  },
);
