iconCheckmark.tsx 1002 B

1234567891011121314151617181920212223242526272829
  1. import React from 'react';
  2. import SvgIcon from './svgIcon';
  3. type Props = React.ComponentProps<typeof SvgIcon> & {
  4. isCircled?: boolean;
  5. };
  6. const IconCheckmark = React.forwardRef(function IconCheckmark(
  7. {isCircled = false, ...props}: Props,
  8. ref: React.Ref<SVGSVGElement>
  9. ) {
  10. return (
  11. <SvgIcon {...props} ref={ref} data-test-id="icon-check-mark">
  12. {isCircled ? (
  13. <React.Fragment>
  14. <path d="M7,12a.78.78,0,0,1-.57-.26L4,9.05A.76.76,0,0,1,4.07,8a.75.75,0,0,1,1.06.07l1.75,2L10.77,4.3A.75.75,0,0,1,12,5.14L7.58,11.7A.77.77,0,0,1,7,12Z" />
  15. <path d="M8,16a8,8,0,1,1,8-8A8,8,0,0,1,8,16ZM8,1.53A6.47,6.47,0,1,0,14.47,8,6.47,6.47,0,0,0,8,1.53Z" />
  16. </React.Fragment>
  17. ) : (
  18. <path d="M6.19,14.51a.77.77,0,0,1-.57-.25l-4.2-4.8a.75.75,0,0,1,1.13-1l3.56,4.06L13.36,1.82a.75.75,0,0,1,1-.21.76.76,0,0,1,.21,1.05L6.81,14.18a.73.73,0,0,1-.58.33Z" />
  19. )}
  20. </SvgIcon>
  21. );
  22. });
  23. IconCheckmark.displayName = 'IconCheckmark';
  24. export {IconCheckmark};