All files / src/assets/icons SortUpIcon.tsx

76.92% Statements 10/13
45.45% Branches 5/11
100% Functions 1/1
90.9% Lines 10/11

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 37 38 39 40 41 42 43                    519x 15x 15x   15x       15x 15x 15x     15x 15x 15x                                  
import React from "react";
import { getDefaults } from "./utils";
type Props = {
  size?: string | number;
  width?: string | number;
  height?: string | number;
  stroke?: string;
  fill?: string;
};
 
const SortUpIcon = (props: Props) => {
  let { size, width, height, stroke, fill } = props;
  const defaults = getDefaults();
 
  Iif (!size && !width && !height) {
    size = defaults.size;
  }
 
  Eif (size) {
    height = size;
    width = size;
  }
 
  Iif (!fill) fill = defaults.fill;
  Iif (!stroke) stroke = defaults.stroke;
  return (
    <svg
      fill={`${fill}`}
      height={`${height}`}
      viewBox="0 0 9 6"
      width={`${width}`}
      xmlns="http://www.w3.org/2000/svg"
    >
      <path
        d="M5.39451 0.359815L8.25947 3.79777C8.80225 4.44909 8.33909 5.43795 7.49125 5.43795L1.76134 5.43795C0.913498 5.43795 0.450341 4.44909 0.993113 3.79777L3.85807 0.359816C4.25787 -0.119938 4.99472 -0.119939 5.39451 0.359815Z"
        fill={`${fill}`}
        stroke={`${stroke}`}
      ></path>
    </svg>
  );
};
export default SortUpIcon;