All files / lib/components/icons/Copy index.tsx

100% Statements 1/1
100% Branches 0/0
100% Functions 1/1
100% Lines 1/1

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36      3x                                                                
import React from 'react';
 
function CopyIcon({ className, onClick }: { className?: string; onClick?: () => void }) {
  return (
    <svg
      width="48"
      height="48"
      viewBox="0 0 48 48"
      fill="none"
      xmlns="http://www.w3.org/2000/svg"
      className={className}
      onClick={onClick}
    >
      <g clipPath="url(#clip0_2223_3330)">
        <path
          d="M48 24C48 28.7468 46.5925 33.3869 43.9553 37.3337C41.3181 41.2804 37.5698 44.3566 33.1844 46.1731C28.799 47.9896 23.9734 48.4649 19.3179 47.5388C14.6623 46.6128 10.3859 44.327 7.02946 40.9706C3.673 37.6141 1.3872 33.3377 0.461158 28.6822C-0.464887 24.0266 0.0104164 19.201 1.82692 14.8156C3.64342 10.4302 6.71953 6.68188 10.6663 4.04473C14.6131 1.40757 19.2533 0 24 0C30.3652 0 36.4697 2.52856 40.9706 7.02943C45.4715 11.5303 48 17.6348 48 24Z"
          fill="#D5D5D5"
        />
        <path
          fillRule="evenodd"
          clipRule="evenodd"
          d="M29.6712 12.5507L32.9479 15.8274C33.2994 16.1789 33.4985 16.6592 33.4985 17.1552V30.1254C33.4985 31.1603 32.6589 32 31.6239 32H28.9971V34.1254C28.9971 35.1603 28.1574 36 27.1224 36H15.8746C14.8397 36 14 35.1603 14 34.1254V17.8785C14 16.8436 14.8397 16.0039 15.8746 16H18.5015V13.8785C18.5015 12.8436 19.3411 12.0039 20.3761 12H28.3472C28.8432 12 29.3197 12.1992 29.6712 12.5507ZM18.5015 17.8785H15.8746V34.1254H27.1224V32H20.3761C19.3411 32 18.5015 31.1603 18.5015 30.1254V17.8785ZM28.4995 17.0029H31.4716L28.4995 14.0309V17.0029ZM20.3761 13.8785V30.1254H31.6239V18.8776H27.5622C27.0428 18.8776 26.6249 18.4597 26.6249 17.9402V13.8785H20.3761Z"
          fill="white"
        />
      </g>
      <defs>
        <clipPath id="clip0_2223_3330">
          <rect width="48" height="48" fill="white" />
        </clipPath>
      </defs>
    </svg>
  );
}
 
export default CopyIcon;