All files / src/assets/icons DotIcon.tsx

75% Statements 3/4
50% Branches 1/2
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 29 3012x 531x 531x                                                      
const DotIcon = ({ isPublished }: { isPublished?: boolean }) => {
  if (!isPublished) {
    return (
      <svg
        width="8"
        height="8"
        viewBox="0 0 8 8"
        fill="none"
        xmlns="http://www.w3.org/2000/svg"
      >
        <circle cx="4" cy="4" r="4" fill="black" fillOpacity="0.25" />
      </svg>
    );
  } else E{
    return (
      <svg
        width="8"
        height="8"
        viewBox="0 0 8 8"
        fill="none"
        xmlns="http://www.w3.org/2000/svg"
      >
        <circle cx="4" cy="4" r="4" fill="#088750" />
      </svg>
    );
  }
};
 
export default DotIcon;