({ type = 'dark' }: Props)
| 5 | }; |
| 6 | |
| 7 | const ThemeIcon = ({ type = 'dark' }: Props) => { |
| 8 | if (type === 'dark') { |
| 9 | return ( |
| 10 | <svg |
| 11 | xmlns="http://www.w3.org/2000/svg" |
| 12 | width="19" |
| 13 | height="20" |
| 14 | viewBox="0 0 50 50" |
| 15 | > |
| 16 | <path |
| 17 | fill="none" |
| 18 | stroke="#000" |
| 19 | strokeWidth="2" |
| 20 | strokeLinejoin="round" |
| 21 | d="M37,4a22,22 0 1,0 0,42a22,22 0 0,1 0-42z" |
| 22 | /> |
| 23 | </svg> |
| 24 | ); |
| 25 | } else { |
| 26 | return ( |
| 27 | <svg |
| 28 | version="1.1" |
| 29 | xmlns="http://www.w3.org/2000/svg" |
| 30 | width="23" |
| 31 | height="22" |
| 32 | fill={'orange'} |
| 33 | viewBox="0 0 130 130" |
| 34 | enableBackground="new 0 0 129 129" |
| 35 | > |
| 36 | <g> |
| 37 | <g> |
| 38 | <path d="m64.5,92.6c15.5,0 28-12.6 28-28s-12.6-28-28-28-28,12.6-28,28 12.5,28 28,28zm0-47.9c11,0 19.9,8.9 19.9,19.9 0,11-8.9,19.9-19.9,19.9s-19.9-8.9-19.9-19.9c0-11 8.9-19.9 19.9-19.9z" /> |
| 39 | <path d="m68.6,23.6v-12.9c0-2.3-1.8-4.1-4.1-4.1s-4.1,1.8-4.1,4.1v12.9c0,2.3 1.8,4.1 4.1,4.1s4.1-1.8 4.1-4.1z" /> |
| 40 | <path d="m60.4,105.6v12.9c0,2.3 1.8,4.1 4.1,4.1s4.1-1.8 4.1-4.1v-12.9c0-2.3-1.8-4.1-4.1-4.1s-4.1,1.8-4.1,4.1z" /> |
| 41 | <path d="m96.4,38.5l9.1-9.1c1.6-1.6 1.6-4.2 0-5.8-1.6-1.6-4.2-1.6-5.8,0l-9.1,9.1c-1.6,1.6-1.6,4.2 0,5.8 0.8,0.8 1.8,1.2 2.9,1.2s2.1-0.4 2.9-1.2z" /> |
| 42 | <path d="m23.5,105.6c0.8,0.8 1.8,1.2 2.9,1.2 1,0 2.1-0.4 2.9-1.2l9.1-9.1c1.6-1.6 1.6-4.2 0-5.8-1.6-1.6-4.2-1.6-5.8,0l-9.1,9.1c-1.6,1.6-1.6,4.2 0,5.8z" /> |
| 43 | <path d="m122.5,64.6c0-2.3-1.8-4.1-4.1-4.1h-12.9c-2.3,0-4.1,1.8-4.1,4.1 0,2.3 1.8,4.1 4.1,4.1h12.9c2.2,1.42109e-14 4.1-1.8 4.1-4.1z" /> |
| 44 | <path d="m10.6,68.7h12.9c2.3,0 4.1-1.8 4.1-4.1 0-2.3-1.8-4.1-4.1-4.1h-12.9c-2.3,0-4.1,1.8-4.1,4.1 0,2.3 1.9,4.1 4.1,4.1z" /> |
| 45 | <path d="m102.6,106.8c1,0 2.1-0.4 2.9-1.2 1.6-1.6 1.6-4.2 0-5.8l-9.1-9.1c-1.6-1.6-4.2-1.6-5.8,0-1.6,1.6-1.6,4.2 0,5.8l9.1,9.1c0.8,0.8 1.9,1.2 2.9,1.2z" /> |
| 46 | <path d="m38.4,38.5c1.6-1.6 1.6-4.2 0-5.8l-9.1-9.1c-1.6-1.6-4.2-1.6-5.8,0-1.6,1.6-1.6,4.2 0,5.8l9.1,9.1c0.8,0.8 1.8,1.2 2.9,1.2s2.1-0.4 2.9-1.2z" /> |
| 47 | </g> |
| 48 | </g> |
| 49 | </svg> |
| 50 | ); |
| 51 | } |
| 52 | }; |
| 53 | |
| 54 | export default ThemeIcon; |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…