Skip to content

Commit

Permalink
feat(icon): add attachment icon
Browse files Browse the repository at this point in the history
  • Loading branch information
ehsan-github committed Oct 17, 2024
1 parent 235f1e9 commit 3208a40
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/components/icon/list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ export enum IconName {
gpu,
refreshCircle,
rightMenu,
attachment,
}

export function getIcon(
Expand Down Expand Up @@ -2047,6 +2048,22 @@ export function getIcon(
</svg>
);

case IconName.attachment:
return (
<svg
width={size}
height={size}
viewBox="0 0 18 18"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M16.5255 4.60491C16.604 4.52175 16.6987 4.4555 16.8037 4.41022C16.9087 4.36494 17.0218 4.34159 17.1362 4.34159C17.2505 4.34159 17.3637 4.36494 17.4687 4.41022C17.5737 4.4555 17.6684 4.52175 17.7469 4.60491C18.0844 4.9559 18.0844 5.52469 17.7469 5.87568L7.36934 16.6835C6.97703 17.0993 6.50391 17.4305 5.97901 17.6568C5.4541 17.8832 4.88849 18 4.31684 18C3.7452 18 3.17958 17.8832 2.65468 17.6568C2.12977 17.4305 1.65666 17.0993 1.26434 16.6835C-0.421446 14.9286 -0.421446 12.0819 1.26434 10.3261L10.4205 0.789904C10.6559 0.540456 10.9398 0.341723 11.2547 0.205893C11.5697 0.0700635 11.9091 0 12.2521 0C12.5951 0 12.9345 0.0700635 13.2494 0.205893C13.5644 0.341723 13.8483 0.540456 14.0837 0.789904C15.0953 1.84288 15.0953 3.55104 14.0837 4.60491L6.14708 12.8676C6.0686 12.9506 5.974 13.0168 5.86907 13.0619C5.76415 13.1071 5.6511 13.1305 5.53685 13.1305C5.4226 13.1305 5.30956 13.1071 5.20463 13.0619C5.09971 13.0168 5.00511 12.9506 4.92662 12.8676C4.76433 12.6959 4.67391 12.4685 4.67391 12.2322C4.67391 11.9959 4.76433 11.7686 4.92662 11.5968L12.8632 3.33234C13.0258 3.16054 13.1164 2.93301 13.1164 2.69651C13.1164 2.46 13.0258 2.23247 12.8632 2.06067C12.7847 1.97752 12.6901 1.91127 12.5851 1.86599C12.48 1.82071 12.3669 1.79735 12.2525 1.79735C12.1382 1.79735 12.025 1.82071 11.92 1.86599C11.815 1.91127 11.7204 1.97752 11.6419 2.06067L2.4839 11.5986C1.47315 12.6516 1.47315 14.3598 2.4839 15.4127C2.71931 15.6622 3.00319 15.8609 3.31815 15.9968C3.6331 16.1326 3.97249 16.2027 4.31549 16.2027C4.65849 16.2027 4.99788 16.1326 5.31283 15.9968C5.62779 15.8609 5.91168 15.6622 6.14708 15.4127L16.5255 4.60491Z"
fill={color}
/>
</svg>
);

default:
return <svg />;
}
Expand Down

0 comments on commit 3208a40

Please sign in to comment.