All files / src/assets/icons DashedLine.tsx

75% Statements 3/4
20% Branches 1/5
100% Functions 1/1
75% Lines 3/4

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 29519x 8x 8x                                                    
const DashedLine = ({ small = false, width }: { small?: boolean, width?: number | string }) => {
  Eif (small) {
    return (
      <svg
        width="342"
        height="2"
        viewBox="0 0 342 2"
        fill="none"
        xmlns="http://www.w3.org/2000/svg"
      >
        <path d="M0 1H342" stroke="#DDDCE5" strokeDasharray="11 11" />
      </svg>
    );
  }
  return (
    <svg
      width={width || "864"}
      height="1"
      viewBox="0 0 864 1"
      fill="none"
      xmlns="http://www.w3.org/2000/svg"
    >
      <path d="M0 0.5H864" stroke="#DDDCE5" strokeDasharray="11 11" />
    </svg>
  );
};
 
export default DashedLine;