mirror of
https://github.com/bellingcat/ukraine-timemap.git
synced 2026-06-12 05:18:34 +03:00
84 lines
5.1 KiB
JavaScript
84 lines
5.1 KiB
JavaScript
import React from 'react';
|
|
|
|
const Icon = ({ iconType }) => {
|
|
if (iconType === 'personas') {
|
|
return (
|
|
<svg x="0px" y="0px" width="40px" height="40px" viewBox="0 0 40 40" enableBackground="new 0 0 40 40">
|
|
<path d="M15.464,17.713" />
|
|
<path d="M5.526,17.713c-1.537,0.595-3,1.472-4.314,2.637l1.114,17.081h16.338" />
|
|
<path d="M12.283,15.522c-1.707,0.661-3.332,1.636-4.792,2.93l1.238,18.979h18.153" />
|
|
<circle cx="27.432" cy="8.876" r="6.877" />
|
|
<path d="M21.297,13.088c-1.896,0.733-3.702,1.817-5.326,3.256l1.375,21.087h20.17l1.376-21.087c-1.624-1.438-3.43-2.522-5.326-3.256" />
|
|
<path d="M20.968,6.547c-0.926-0.554-2.006-0.877-3.163-0.877c-3.418,0-6.188,2.771-6.188,6.188c0,2.811,1.875,5.18,4.441,5.935" />
|
|
<path d="M12.38,8.881c-0.738-0.361-1.564-0.57-2.441-0.57c-3.076,0-5.57,2.494-5.57,5.57c0,1.983,1.04,3.72,2.601,4.707" />
|
|
</svg>
|
|
);
|
|
} else if (iconType === 'tipos') {
|
|
return (
|
|
<svg x="0px" y="0px" width="40px" height="40px" viewBox="0 0 40 40" enableBackground="new 0 0 40 40">
|
|
<path strokeDasharray="3, 4" d="M22.326,5.346
|
|
c-2.154-2.081-5.082-3.367-8.314-3.367c-6.614,0-11.976,5.361-11.976,11.974c0,6.613,5.361,11.977,11.976,11.977
|
|
c0.228,0,0.449-0.021,0.674-0.034"/>
|
|
<circle cx="23" cy="17.288" r="11.975"/>
|
|
<circle strokeDasharray="3, 4" cx="25.987" cy="26.926" r="11.976" />
|
|
</svg>
|
|
);
|
|
} else if (iconType === 'hardware') {
|
|
return (
|
|
<svg x="0px" y="0px" width="40px" height="40px" viewBox="0 0 40 40" enableBackground="new 0 0 40 40">
|
|
<path d="M20,1.695C12.571,1.696,6.286,2.019,5.272,2.452C5.253,2.458,5.233,2.466,5.215,2.474
|
|
c-0.01,0.004-0.019,0.008-0.027,0.012C4.38,2.831,3.803,4.256,3.802,5.907v3.502H2.926H1.175c-0.241,0-0.438,0.196-0.438,0.438
|
|
v0.875v5.254c0,0.242,0.196,0.438,0.438,0.438h1.751c0.242,0,0.438-0.195,0.438-0.438V11.16h0.438v15.324h5.691
|
|
c0.242,0,0.438,0.195,0.438,0.438v1.751c0,0.241-0.195,0.438-0.438,0.438H3.802v3.063c0,0.626,0.167,1.203,0.438,1.515v3.74
|
|
c0,0.482,0.393,0.875,0.876,0.875h2.627c0.483,0,0.875-0.393,0.875-0.875v-2.627h22.765v2.627c0,0.482,0.393,0.875,0.877,0.875
|
|
h2.627c0.482,0,0.875-0.393,0.875-0.875v-3.74c0.271-0.312,0.438-0.889,0.438-1.515v-3.065h-5.691c-0.241,0-0.438-0.195-0.438-0.438
|
|
v-1.751c0-0.241,0.197-0.438,0.438-0.438H36.2V11.161h0.438v4.816c0,0.242,0.195,0.438,0.438,0.438h1.752
|
|
c0.24,0,0.438-0.195,0.438-0.438v-5.254V9.848c0-0.242-0.195-0.438-0.438-0.438h-1.752h-0.875V5.907
|
|
c-0.001-1.703-0.614-3.159-1.453-3.448C33.79,2.023,27.479,1.696,20,1.695z M5.429,3.28h29.144c0.483,0,0.875,0.98,0.875,2.189l0,0
|
|
V7.22c0,0.242-0.195,0.438-0.438,0.438H4.991c-0.242,0-0.438-0.196-0.438-0.438V5.469C4.553,4.261,4.945,3.28,5.429,3.28z
|
|
M5.553,8.534h28.895c0.483,0,0.876,0.392,0.876,0.875v13.134c0,0.484-0.393,0.876-0.876,0.876h-3.466c0,0-0.863,0.613-0.912,0.613
|
|
H9.931c-0.113,0-0.225-0.022-0.33-0.065l-0.778-0.548h-3.27c-0.483,0-0.875-0.392-0.875-0.876V9.409
|
|
C4.678,8.926,5.069,8.534,5.553,8.534L5.553,8.534z"/>
|
|
</svg>
|
|
);
|
|
} else if (iconType === 'escenas') {
|
|
return (
|
|
<svg className="scenes" x="0px" y="0px" width="40px" height="40px" viewBox="0 0 40 40" enableBackground="new 0 0 40 40">
|
|
<path d="M36.729,14.743v13.15l-14.225,6.693V21.438L36.729,14.743 M38.732,11.045L20.5,19.625v18.662l18.232-8.58V11.045
|
|
L38.732,11.045z" />
|
|
<path d="M4.271,14.743l14.225,6.695v13.148L4.271,27.894V14.743 M2.268,11.045v18.662l18.232,8.58V19.625L2.268,11.045L2.268,11.045
|
|
z" />
|
|
<path d="M20.5,4.844l13.289,6.202L20.5,17.247L7.209,11.046L20.5,4.844 M20.5,2.537L2.268,11.045L20.5,19.554l18.232-8.509
|
|
L20.5,2.537L20.5,2.537z" />
|
|
</svg>
|
|
);
|
|
} else if (iconType === 'docs') {
|
|
return (
|
|
<svg x="0px" y="0px" width="40px" height="40px" viewBox="0 0 40 40" enableBackground="new 0 0 40 40">
|
|
<path d="M31.543,5.987V3.158
|
|
c0-1.103-0.095-1.197-1.197-1.197H4.791c-1.103,0-1.198,0.095-1.198,1.197V32.84c0,1.103,0.095,1.197,1.198,1.197h2.829"/>
|
|
<path d="M35.57,36.866
|
|
c0,1.103-0.096,1.198-1.198,1.198H8.817c-1.103,0-1.198-0.096-1.198-1.198V7.185c0-1.103,0.095-1.197,1.198-1.197h25.555
|
|
c1.103,0,1.198,0.095,1.198,1.197V36.866z"/>
|
|
<path d="M58.755,29.633"/>
|
|
<path d="M21.86,40.072"/>
|
|
<path d="M-22.755,58.555"/>
|
|
<line x1="11.612" y1="11.977" x2="31.577" y2="11.977"/>
|
|
<line x1="11.612" y1="17.966" x2="31.577" y2="17.966"/>
|
|
<line x1="11.612" y1="29.945" x2="31.577" y2="29.945"/>
|
|
<line x1="11.612" y1="23.955" x2="31.577" y2="23.955"/>
|
|
</svg>
|
|
)
|
|
} else if (iconType === 'search') {
|
|
return (
|
|
<svg x="0px" y="0px" width="40px" height="40px" viewBox="0 0 40 40" enableBackground="new 0 0 40 40">
|
|
<circle cx="18.306" cy="18.307" r="13.856"/>
|
|
<path strokeLinecap="round" strokeLinejoin="round" d="M28.24,28.24
|
|
l8.346,8.346L28.24,28.24z"/>
|
|
</svg>
|
|
);
|
|
}
|
|
}
|
|
|
|
export default Icon;
|