This repository was archived by the owner on Jun 13, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathExecutorIcon.tsx
More file actions
33 lines (30 loc) · 4.66 KB
/
ExecutorIcon.tsx
File metadata and controls
33 lines (30 loc) · 4.66 KB
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
import { IconProps } from '../IconProps';
const icons: Record<string, { path: string; viewBox?: string }> = {
docker: {
path: 'M21.8083 11.2333C21.2031 10.8548 20.5126 10.6342 19.8 10.5917C19.678 10.5817 19.5554 10.5817 19.4333 10.5917C19.2035 9.82759 18.7218 9.16379 18.0667 8.70833C17.8984 8.59551 17.6733 8.62013 17.5333 8.76667C16.9483 9.5485 16.7295 10.545 16.9333 11.5C16.9482 11.6242 16.9087 11.7487 16.825 11.8417C16.753 11.9222 16.6497 11.9678 16.5417 11.9667H16.1667V9.91667C16.1667 9.68655 15.9801 9.5 15.75 9.5H13.6667V4.91667C13.6667 4.68655 13.4801 4.5 13.25 4.5H10.75C10.5199 4.5 10.3333 4.68655 10.3333 4.91667V7H5.75C5.51988 7 5.33333 7.18655 5.33333 7.41667V9.5H3.25C3.01988 9.5 2.83333 9.68655 2.83333 9.91667V12H2.41667C2.18655 12 2 12.1865 2 12.4167C2 18.8083 6.65833 19.5001 8.66667 19.5001C12.9113 19.5125 16.8417 17.2648 18.9833 13.6C20.1806 13.4421 21.2552 12.7852 21.9417 11.7917C22.053 11.5997 21.9943 11.3543 21.8083 11.2333ZM15.3333 12H13.6667V10.3333H15.3333V12ZM6.16667 12V10.3333H7.83333V12H6.16667ZM8.66667 12V10.3333H10.3333V12H8.66667ZM12.8333 7.83333V9.5H11.1667V7.83333H12.8333ZM11.1667 12V10.3333H12.8333V12H11.1667ZM11.1667 5.33333H12.8333V7H11.1667V5.33333ZM10.3333 9.5H8.66667V7.83333H10.3333V9.5ZM6.16667 7.83333H7.83333V9.5H6.16667V7.83333ZM3.66667 10.3333H5.33333V12H3.66667V10.3333ZM6.16667 16.1667C5.70643 16.1667 5.33333 15.7936 5.33333 15.3333C5.33333 14.8731 5.70643 14.5 6.16667 14.5C6.6269 14.5 7 14.8731 7 15.3333C7 15.7936 6.6269 16.1667 6.16667 16.1667Z',
},
macos: {
path: 'M20 15.8732C19.7014 16.8247 19.2304 17.7762 18.5872 18.7278C17.5994 20.2198 16.6155 20.9657 15.6353 20.9657C15.2601 20.9657 14.7241 20.844 14.0273 20.6004C13.3687 20.3568 12.7906 20.235 12.2929 20.235C11.8258 20.235 11.2821 20.3606 10.6619 20.6118C10.0416 20.8706 9.53625 21 9.14573 21C7.98181 21 6.82939 20.0142 5.68844 18.0427C4.56281 16.0559 4 14.1414 4 12.2993C4 10.5637 4.43264 9.14022 5.29792 8.02885C6.15554 6.93269 7.24288 6.38462 8.55994 6.38462C9.11127 6.38462 9.78894 6.4988 10.593 6.72716C11.3893 6.95553 11.9177 7.06971 12.178 7.06971C12.5226 7.06971 13.0701 6.9403 13.8205 6.68149C14.6016 6.42268 15.2639 6.29327 15.8076 6.29327C16.7188 6.29327 17.5343 6.54067 18.2541 7.03546C18.6523 7.30949 19.0505 7.6901 19.4487 8.17728C18.8437 8.6873 18.4073 9.13642 18.1393 9.52464C17.6415 10.2402 17.3927 11.028 17.3927 11.8882C17.3927 12.8321 17.6569 13.6809 18.1852 14.4345C18.7136 15.1881 19.3185 15.6677 20 15.8732ZM15.6813 2.47957C15.6813 2.94391 15.5702 3.46154 15.3482 4.03245C15.1184 4.60337 14.7624 5.12861 14.28 5.60817C13.8665 6.01923 13.453 6.29327 13.0395 6.43029C12.7562 6.51402 12.358 6.57873 11.8449 6.6244C11.8679 5.49018 12.1665 4.51202 12.7408 3.6899C13.3075 2.8754 14.2647 2.3121 15.6123 2C15.62 2.02284 15.6296 2.0647 15.6411 2.1256C15.6525 2.1865 15.6621 2.22837 15.6698 2.2512C15.6698 2.28165 15.6717 2.31971 15.6755 2.36538C15.6793 2.41106 15.6813 2.44912 15.6813 2.47957Z',
},
windows: {
path: 'M6.58594 0C4.59594 0 2.66498 0.954141 2.58398 0.994141L2.10938 1.23047L1.31836 7.16797C2.39736 6.59597 3.85291 6 5.25391 6C6.14091 6 7.34039 6.49052 8.65039 7.10352L9.5 0.984375C8.427 0.427375 7.42694 0 6.58594 0ZM18.5527 0.589844L16.6602 1.97266C16.6472 1.98266 15.2392 3 13.8242 3C13.3182 3 12.325 2.50905 11.377 1.99805L10.543 8.00781C11.624 8.51781 12.7339 9 13.2539 9C14.8829 9 16.5417 8.32397 17.5938 7.79297L18.5527 0.589844ZM5.25391 8C3.70491 8 1.75047 9.16489 0.980469 9.71289L0 17.0527L1.73438 16.0996C2.29037 15.7936 4.00691 15 5.25391 15C5.72091 15 6.57973 15.4274 7.42773 15.8984L8.36133 9.17969C7.16533 8.60769 5.83791 8 5.25391 8ZM10.2559 10.0781L9.29883 16.9609C10.3668 17.5449 11.3682 18 12.2422 18C14.2782 18 15.929 17.0068 15.998 16.9648L16.4043 16.7168L17.2832 10.127C16.1312 10.591 14.7039 11 13.2539 11C12.4579 11 11.4099 10.6021 10.2559 10.0781Z',
viewBox: '0 0 19 18',
},
machine: {
path: 'M2.5 4C2.22386 4 2 4.22386 2 4.5V7.5C2 7.77614 2.22386 8 2.5 8H21.5C21.7761 8 22 7.77614 22 7.5V4.5C22 4.22386 21.7761 4 21.5 4H2.5ZM7 5H5V7H7V5ZM2.5 10C2.22386 10 2 10.2239 2 10.5V13.5C2 13.7761 2.22386 14 2.5 14H21.5C21.7761 14 22 13.7761 22 13.5V10.5C22 10.2239 21.7761 10 21.5 10H2.5ZM7 11H5V13H7V11ZM2 16.5C2 16.2239 2.22386 16 2.5 16H21.5C21.7761 16 22 16.2239 22 16.5V19.5C22 19.7761 21.7761 20 21.5 20H2.5C2.22386 20 2 19.7761 2 19.5V16.5ZM5 17H7V19H5V17Z',
},
};
const ExecutorIcon = (props: IconProps & { type?: keyof typeof icons }) => {
const executor = icons[props.type || 'machine'];
return (
<svg viewBox={executor.viewBox ?? '0 0 24 24'} className={props.className}>
<path
fillRule="evenodd"
clipRule="evenodd"
fill={props.color}
d={executor.path}
/>
</svg>
);
};
export default ExecutorIcon;