Icon.tsx 31 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046
  1. import clsx from 'clsx';
  2. const icons = {
  3. plus: ({ className }) => (
  4. <svg
  5. xmlns="http://www.w3.org/2000/svg"
  6. className={clsx(
  7. 'icon icon-tabler icon icon-tabler icon-tabler-plus',
  8. className
  9. )}
  10. width="24"
  11. height="24"
  12. viewBox="0 0 24 24"
  13. strokeWidth="2"
  14. stroke="currentColor"
  15. fill="none"
  16. strokeLinecap="round"
  17. strokeLinejoin="round"
  18. >
  19. <line x1="12" y1="5" x2="12" y2="19" />
  20. <line x1="5" y1="12" x2="19" y2="12" />
  21. </svg>
  22. ),
  23. 'brand-github': ({ className }) => (
  24. <svg
  25. xmlns="http://www.w3.org/2000/svg"
  26. className={clsx('icon icon-tabler icon-tabler-brand-github', className)}
  27. width={24}
  28. height={24}
  29. viewBox="0 0 24 24"
  30. strokeWidth="2"
  31. stroke="currentColor"
  32. fill="none"
  33. strokeLinecap="round"
  34. strokeLinejoin="round"
  35. >
  36. <path d="M9 19c-4.3 1.4 -4.3 -2.5 -6 -3m12 5v-3.5c0 -1 .1 -1.4 -.5 -2c2.8 -.3 5.5 -1.4 5.5 -6a4.6 4.6 0 0 0 -1.3 -3.2a4.2 4.2 0 0 0 -.1 -3.2s-1.1 -.3 -3.5 1.3a12.3 12.3 0 0 0 -6.2 0c-2.4 -1.6 -3.5 -1.3 -3.5 -1.3a4.2 4.2 0 0 0 -.1 3.2a4.6 4.6 0 0 0 -1.3 3.2c0 4.6 2.7 5.7 5.5 6c-.6 .6 -.6 1.2 -.5 2v3.5" />
  37. </svg>
  38. ),
  39. 'brand-sketch': ({ className }) => (
  40. <svg
  41. xmlns="http://www.w3.org/2000/svg"
  42. className={clsx('icon icon-tabler icon-tabler-brand-sketch', className)}
  43. width={24}
  44. height={24}
  45. viewBox="0 0 24 24"
  46. strokeWidth="2"
  47. stroke="currentColor"
  48. fill="none"
  49. strokeLinecap="round"
  50. strokeLinejoin="round"
  51. >
  52. <path d="M3.262 10.878l8 8.789c.4 .44 1.091 .44 1.491 0l8 -8.79c.313 -.344 .349 -.859 .087 -1.243l-3.537 -5.194a1 1 0 0 0 -.823 -.436h-8.926a1 1 0 0 0 -.823 .436l-3.54 5.192c-.263 .385 -.227 .901 .087 1.246z" />
  53. </svg>
  54. ),
  55. 'brand-figma': ({ className }) => (
  56. <svg
  57. xmlns="http://www.w3.org/2000/svg"
  58. className={clsx('icon icon-tabler icon-tabler-brand-figma', className)}
  59. width={24}
  60. height={24}
  61. viewBox="0 0 24 24"
  62. strokeWidth={2}
  63. stroke="currentColor"
  64. fill="none"
  65. strokeLinecap="round"
  66. strokeLinejoin="round"
  67. >
  68. <circle cx={15} cy={12} r={3} />
  69. <rect x={6} y={3} width={12} height={6} rx={3} />
  70. <path d="M9 9a3 3 0 0 0 0 6h3m-3 0a3 3 0 1 0 3 3v-15" />
  71. </svg>
  72. ),
  73. 'brand-twitter': ({ className }) => (
  74. <svg
  75. xmlns="http://www.w3.org/2000/svg"
  76. className={clsx('icon icon-tabler icon-tabler-brand-twitter', className)}
  77. width={24}
  78. height={24}
  79. viewBox="0 0 24 24"
  80. strokeWidth={2}
  81. stroke="currentColor"
  82. fill="none"
  83. strokeLinecap="round"
  84. strokeLinejoin="round"
  85. >
  86. <path d="M22 4.01c-1 .49 -1.98 .689 -3 .99c-1.121 -1.265 -2.783 -1.335 -4.38 -.737s-2.643 2.06 -2.62 3.737v1c-3.245 .083 -6.135 -1.395 -8 -4c0 0 -4.182 7.433 4 11c-1.872 1.247 -3.739 2.088 -6 2c3.308 1.803 6.913 2.423 10.034 1.517c3.58 -1.04 6.522 -3.723 7.651 -7.742a13.84 13.84 0 0 0 .497 -3.753c-.002 -.249 1.51 -2.772 1.818 -4.013z" />
  87. </svg>
  88. ),
  89. 'brand-facebook': ({ className }) => (
  90. <svg
  91. xmlns="http://www.w3.org/2000/svg"
  92. className={clsx('icon icon-tabler icon-tabler-brand-facebook', className)}
  93. width={24}
  94. height={24}
  95. viewBox="0 0 24 24"
  96. strokeWidth={2}
  97. stroke="currentColor"
  98. fill="none"
  99. strokeLinecap="round"
  100. strokeLinejoin="round"
  101. >
  102. <path d="M7 10v4h3v7h4v-7h3l1 -4h-4v-2a1 1 0 0 1 1 -1h3v-4h-3a5 5 0 0 0 -5 5v2h-3" />
  103. </svg>
  104. ),
  105. 'brand-dribbble': ({ className }) => (
  106. <svg
  107. xmlns="http://www.w3.org/2000/svg"
  108. className={clsx('icon icon-tabler icon-tabler-brand-dribbble', className)}
  109. width={24}
  110. height={24}
  111. viewBox="0 0 24 24"
  112. strokeWidth={2}
  113. stroke="currentColor"
  114. fill="none"
  115. strokeLinecap="round"
  116. strokeLinejoin="round"
  117. >
  118. <circle cx={12} cy={12} r={9} />
  119. <path d="M9 3.6c5 6 7 10.5 7.5 16.2" />
  120. <path d="M6.4 19c3.5 -3.5 6 -6.5 14.5 -6.4" />
  121. <path d="M3.1 10.75c5 0 9.814 -.38 15.314 -5" />
  122. </svg>
  123. ),
  124. heart: ({ className }) => (
  125. <svg
  126. xmlns="http://www.w3.org/2000/svg"
  127. className={clsx('icon icon-tabler icon-tabler-heart', className)}
  128. width={24}
  129. height={24}
  130. viewBox="0 0 24 24"
  131. strokeWidth={2}
  132. stroke="currentColor"
  133. fill="none"
  134. strokeLinecap="round"
  135. strokeLinejoin="round"
  136. >
  137. <path d="M19.5 13.572l-7.5 7.428l-7.5 -7.428m0 0a5 5 0 1 1 7.5 -6.566a5 5 0 1 1 7.5 6.572" />
  138. </svg>
  139. ),
  140. download: ({ className }) => (
  141. <svg
  142. xmlns="http://www.w3.org/2000/svg"
  143. className={clsx('icon icon-tabler icon-tabler-download', className)}
  144. width={24}
  145. height={24}
  146. viewBox="0 0 24 24"
  147. strokeWidth={2}
  148. stroke="currentColor"
  149. fill="none"
  150. strokeLinecap="round"
  151. strokeLinejoin="round"
  152. >
  153. <path d="M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-2" />
  154. <polyline points="7 11 12 16 17 11" />
  155. <line x1={12} y1={4} x2={12} y2={16} />
  156. </svg>
  157. ),
  158. edit: ({ className }) => (
  159. <svg
  160. xmlns="http://www.w3.org/2000/svg"
  161. className={clsx('icon icon-tabler icon-tabler-edit', className)}
  162. width={24}
  163. height={24}
  164. viewBox="0 0 24 24"
  165. strokeWidth={2}
  166. stroke="currentColor"
  167. fill="none"
  168. strokeLinecap="round"
  169. strokeLinejoin="round"
  170. >
  171. <path d="M7 7h-1a2 2 0 0 0 -2 2v9a2 2 0 0 0 2 2h9a2 2 0 0 0 2 -2v-1" />
  172. <path d="M20.385 6.585a2.1 2.1 0 0 0 -2.97 -2.97l-8.415 8.385v3h3l8.385 -8.415z" />
  173. <path d="M16 5l3 3" />
  174. </svg>
  175. ),
  176. search: ({ className }) => (
  177. <svg
  178. xmlns="http://www.w3.org/2000/svg"
  179. className={clsx('icon icon-tabler icon-tabler-search', className)}
  180. width={24}
  181. height={24}
  182. viewBox="0 0 24 24"
  183. strokeWidth={2}
  184. stroke="currentColor"
  185. fill="none"
  186. strokeLinecap="round"
  187. strokeLinejoin="round"
  188. >
  189. <circle cx={10} cy={10} r={7} />
  190. <line x1={21} y1={21} x2={15} y2={15} />
  191. </svg>
  192. ),
  193. lock: ({ className }) => (
  194. <svg
  195. xmlns="http://www.w3.org/2000/svg"
  196. className={clsx('icon icon-tabler icon-tabler-lock', className)}
  197. width={24}
  198. height={24}
  199. viewBox="0 0 24 24"
  200. strokeWidth={2}
  201. stroke="currentColor"
  202. fill="none"
  203. strokeLinecap="round"
  204. strokeLinejoin="round"
  205. >
  206. <rect x={5} y={11} width={14} height={10} rx={2} />
  207. <circle cx={12} cy={16} r={1} />
  208. <path d="M8 11v-4a4 4 0 0 1 8 0v4" />
  209. </svg>
  210. ),
  211. 'brand-bootstrap': ({ className }) => (
  212. <svg
  213. xmlns="http://www.w3.org/2000/svg"
  214. className={clsx(
  215. 'icon icon-tabler icon-tabler-brand-bootstrap',
  216. className
  217. )}
  218. width={24}
  219. height={24}
  220. viewBox="0 0 24 24"
  221. strokeWidth={2}
  222. stroke="currentColor"
  223. fill="none"
  224. strokeLinecap="round"
  225. strokeLinejoin="round"
  226. >
  227. <path d="M2 12a2 2 0 0 0 2 -2v-4a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v4a2 2 0 0 0 2 2" />
  228. <path d="M2 12a2 2 0 0 1 2 2v4a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-4a2 2 0 0 1 2 -2" />
  229. <path d="M9 16v-8h3.5a2 2 0 1 1 0 4h-3.5h4a2 2 0 1 1 0 4h-4z" />
  230. </svg>
  231. ),
  232. 'brand-html5': ({ className }) => (
  233. <svg
  234. xmlns="http://www.w3.org/2000/svg"
  235. className={clsx('icon icon-tabler icon-tabler-brand-html5', className)}
  236. width={24}
  237. height={24}
  238. viewBox="0 0 24 24"
  239. strokeWidth={2}
  240. stroke="currentColor"
  241. fill="none"
  242. strokeLinecap="round"
  243. strokeLinejoin="round"
  244. >
  245. <path d="M20 4l-2 14.5l-6 2l-6 -2l-2 -14.5z" />
  246. <path d="M15.5 8h-7l.5 4h6l-.5 3.5l-2.5 .75l-2.5 -.75l-.1 -.5" />
  247. </svg>
  248. ),
  249. tools: ({ className }) => (
  250. <svg
  251. xmlns="http://www.w3.org/2000/svg"
  252. className={clsx('icon icon-tabler icon-tabler-tools', className)}
  253. width={24}
  254. height={24}
  255. viewBox="0 0 24 24"
  256. strokeWidth={2}
  257. stroke="currentColor"
  258. fill="none"
  259. strokeLinecap="round"
  260. strokeLinejoin="round"
  261. >
  262. <path d="M3 21h4l13 -13a1.5 1.5 0 0 0 -4 -4l-13 13v4" />
  263. <line x1="14.5" y1="5.5" x2="18.5" y2="9.5" />
  264. <polyline points="12 8 7 3 3 7 8 12" />
  265. <line x1={7} y1={8} x2="5.5" y2="9.5" />
  266. <polyline points="16 12 21 17 17 21 12 16" />
  267. <line x1={16} y1={17} x2="14.5" y2="18.5" />
  268. </svg>
  269. ),
  270. paint: ({ className }) => (
  271. <svg
  272. xmlns="http://www.w3.org/2000/svg"
  273. className={clsx('icon icon-tabler icon-tabler-paint', className)}
  274. width={24}
  275. height={24}
  276. viewBox="0 0 24 24"
  277. strokeWidth={2}
  278. stroke="currentColor"
  279. fill="none"
  280. strokeLinecap="round"
  281. strokeLinejoin="round"
  282. >
  283. <rect x={5} y={3} width={14} height={6} rx={2} />
  284. <path d="M19 6h1a2 2 0 0 1 2 2a5 5 0 0 1 -5 5l-5 0v2" />
  285. <rect x={10} y={15} width={4} height={6} rx={1} />
  286. </svg>
  287. ),
  288. check: ({ className }) => (
  289. <svg
  290. xmlns="http://www.w3.org/2000/svg"
  291. className={clsx('icon icon-tabler icon-tabler-check', className)}
  292. width={24}
  293. height={24}
  294. viewBox="0 0 24 24"
  295. strokeWidth={2}
  296. stroke="currentColor"
  297. fill="none"
  298. strokeLinecap="round"
  299. strokeLinejoin="round"
  300. >
  301. <path d="M5 12l5 5l10 -10" />
  302. </svg>
  303. ),
  304. x: ({ className }) => (
  305. <svg
  306. xmlns="http://www.w3.org/2000/svg"
  307. className={clsx('icon icon-tabler icon-tabler-x', className)}
  308. width={24}
  309. height={24}
  310. viewBox="0 0 24 24"
  311. strokeWidth={2}
  312. stroke="currentColor"
  313. fill="none"
  314. strokeLinecap="round"
  315. strokeLinejoin="round"
  316. >
  317. <line x1="18" y1="6" x2="6" y2="18" />
  318. <line x1="6" y1="6" x2="18" y2="18" />
  319. </svg>
  320. ),
  321. copy: ({ className }) => (
  322. <svg
  323. xmlns="http://www.w3.org/2000/svg"
  324. className={clsx('icon icon-tabler icon-tabler-copy', className)}
  325. width="24"
  326. height="24"
  327. viewBox="0 0 24 24"
  328. strokeWidth="2"
  329. stroke="currentColor"
  330. fill="none"
  331. strokeLinecap="round"
  332. strokeLinejoin="round"
  333. >
  334. <rect x="8" y="8" width="12" height="12" rx="2" />
  335. <path d="M16 8v-2a2 2 0 0 0 -2 -2h-8a2 2 0 0 0 -2 2v8a2 2 0 0 0 2 2h2" />
  336. </svg>
  337. ),
  338. 'arrow-down-circle': ({ className }) => (
  339. <svg
  340. xmlns="http://www.w3.org/2000/svg"
  341. className={clsx(
  342. 'icon icon-tabler icon-tabler-arrow-down-circle',
  343. className
  344. )}
  345. width="24"
  346. height="24"
  347. viewBox="0 0 24 24"
  348. strokeWidth="2"
  349. stroke="currentColor"
  350. fill="none"
  351. strokeLinecap="round"
  352. strokeLinejoin="round"
  353. >
  354. <circle cx="12" cy="12" r="9" />
  355. <line x1="8" y1="12" x2="12" y2="16" />
  356. <line x1="12" y1="8" x2="12" y2="16" />
  357. <line x1="16" y1="12" x2="12" y2="16" />
  358. </svg>
  359. ),
  360. 'thumb-up': ({ className }) => (
  361. <svg
  362. xmlns="http://www.w3.org/2000/svg"
  363. className={clsx('icon icon-tabler icon-tabler-thumb-up', className)}
  364. width="24"
  365. height="24"
  366. viewBox="0 0 24 24"
  367. strokeWidth="2"
  368. stroke="currentColor"
  369. fill="none"
  370. strokeLinecap="round"
  371. strokeLinejoin="round"
  372. >
  373. <path d="M7 11v8a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1v-7a1 1 0 0 1 1 -1h3a4 4 0 0 0 4 -4v-1a2 2 0 0 1 4 0v5h3a2 2 0 0 1 2 2l-1 5a2 3 0 0 1 -2 2h-7a3 3 0 0 1 -3 -3" />
  374. </svg>
  375. ),
  376. 'device-mobile': ({ className }) => (
  377. <svg
  378. xmlns="http://www.w3.org/2000/svg"
  379. className={clsx('icon icon-tabler icon-tabler-device-mobile', className)}
  380. width="24"
  381. height="24"
  382. viewBox="0 0 24 24"
  383. strokeWidth="2"
  384. stroke="currentColor"
  385. fill="none"
  386. strokeLinecap="round"
  387. strokeLinejoin="round"
  388. >
  389. <rect x="6" y="3" width="12" height="18" rx="2" />
  390. <line x1="11" y1="4" x2="13" y2="4" />
  391. <line x1="12" y1="17" x2="12" y2="17.01" />
  392. </svg>
  393. ),
  394. 'device-tablet': ({ className }) => (
  395. <svg
  396. xmlns="http://www.w3.org/2000/svg"
  397. className={clsx('icon icon-tabler icon-tabler-device-tablet', className)}
  398. width="24"
  399. height="24"
  400. viewBox="0 0 24 24"
  401. strokeWidth="1.5"
  402. stroke="currentColor"
  403. fill="none"
  404. strokeLinecap="round"
  405. strokeLinejoin="round"
  406. >
  407. <rect x="5" y="3" width="14" height="18" rx="1" />
  408. <circle cx="12" cy="17" r="1" />
  409. </svg>
  410. ),
  411. 'device-desktop': ({ className }) => (
  412. <svg
  413. xmlns="http://www.w3.org/2000/svg"
  414. className={clsx('icon icon-tabler icon-tabler-device-desktop', className)}
  415. width="24"
  416. height="24"
  417. viewBox="0 0 24 24"
  418. strokeWidth="1.5"
  419. stroke="currentColor"
  420. fill="none"
  421. strokeLinecap="round"
  422. strokeLinejoin="round"
  423. >
  424. <rect x="3" y="4" width="18" height="12" rx="1" />
  425. <line x1="7" y1="20" x2="17" y2="20" />
  426. <line x1="9" y1="16" x2="9" y2="20" />
  427. <line x1="15" y1="16" x2="15" y2="20" />
  428. </svg>
  429. ),
  430. 'chevron-left': ({ className }) => (
  431. <svg
  432. xmlns="http://www.w3.org/2000/svg"
  433. className={clsx('icon icon-tabler icon-tabler-chevron-left', className)}
  434. width="24"
  435. height="24"
  436. viewBox="0 0 24 24"
  437. strokeWidth="1.5"
  438. stroke="currentColor"
  439. fill="none"
  440. strokeLinecap="round"
  441. strokeLinejoin="round"
  442. >
  443. <polyline points="15 6 9 12 15 18" />
  444. </svg>
  445. ),
  446. 'chevron-right': ({ className }) => (
  447. <svg
  448. xmlns="http://www.w3.org/2000/svg"
  449. className={clsx('icon icon-tabler icon-tabler-chevron-right', className)}
  450. width="24"
  451. height="24"
  452. viewBox="0 0 24 24"
  453. strokeWidth="2"
  454. stroke="currentColor"
  455. fill="none"
  456. strokeLinecap="round"
  457. strokeLinejoin="round"
  458. >
  459. <polyline points="9 6 15 12 9 18" />
  460. </svg>
  461. ),
  462. lego: ({ className }) => (
  463. <svg
  464. xmlns="http://www.w3.org/2000/svg"
  465. className={clsx('icon icon-tabler icon-tabler-lego', className)}
  466. width="24"
  467. height="24"
  468. viewBox="0 0 24 24"
  469. strokeWidth="2"
  470. stroke="currentColor"
  471. fill="none"
  472. strokeLinecap="round"
  473. strokeLinejoin="round"
  474. >
  475. <line x1="9.5" y1="11" x2="9.51" y2="11" />
  476. <line x1="14.5" y1="11" x2="14.51" y2="11" />
  477. <path d="M9.5 15a3.5 3.5 0 0 0 5 0" />
  478. <path d="M7 5h1v-2h8v2h1a3 3 0 0 1 3 3v9a3 3 0 0 1 -3 3v1h-10v-1a3 3 0 0 1 -3 -3v-9a3 3 0 0 1 3 -3" />
  479. </svg>
  480. ),
  481. 'chevron-up': ({ className }) => (
  482. <svg
  483. xmlns="http://www.w3.org/2000/svg"
  484. className={clsx('icon icon-tabler icon-tabler-chevron-up', className)}
  485. width="24"
  486. height="24"
  487. viewBox="0 0 24 24"
  488. strokeWidth="2"
  489. stroke="currentColor"
  490. fill="none"
  491. strokeLinecap="round"
  492. strokeLinejoin="round"
  493. >
  494. <polyline points="6 15 12 9 18 15" />
  495. </svg>
  496. ),
  497. devices: ({ className }) => (
  498. <svg
  499. xmlns="http://www.w3.org/2000/svg"
  500. className={clsx('icon icon-tabler icon-tabler-devices', className)}
  501. width="24"
  502. height="24"
  503. viewBox="0 0 24 24"
  504. strokeWidth="2"
  505. stroke="currentColor"
  506. fill="none"
  507. strokeLinecap="round"
  508. strokeLinejoin="round"
  509. >
  510. <rect x="13" y="8" width="8" height="12" rx="1" />
  511. <path d="M18 8v-3a1 1 0 0 0 -1 -1h-13a1 1 0 0 0 -1 1v12a1 1 0 0 0 1 1h9" />
  512. <line x1="16" y1="9" x2="18" y2="9" />
  513. </svg>
  514. ),
  515. mailbox: ({ className }) => (
  516. <svg
  517. xmlns="http://www.w3.org/2000/svg"
  518. className={clsx('icon icon-tabler icon-tabler-mailbox', className)}
  519. width="24"
  520. height="24"
  521. viewBox="0 0 24 24"
  522. strokeWidth="2"
  523. stroke="currentColor"
  524. fill="none"
  525. strokeLinecap="round"
  526. strokeLinejoin="round"
  527. >
  528. <path d="M10 21v-6.5a3.5 3.5 0 0 0 -7 0v6.5h18v-6a4 4 0 0 0 -4 -4h-10.5" />
  529. <path d="M12 11v-8h4l2 2l-2 2h-4" />
  530. <path d="M6 15h1" />
  531. </svg>
  532. ),
  533. palette: ({ className }) => (
  534. <svg
  535. xmlns="http://www.w3.org/2000/svg"
  536. className={clsx('icon icon-tabler icon-tabler-palette', className)}
  537. width="24"
  538. height="24"
  539. viewBox="0 0 24 24"
  540. strokeWidth="2"
  541. stroke="currentColor"
  542. fill="none"
  543. strokeLinecap="round"
  544. strokeLinejoin="round"
  545. >
  546. <path d="M12 21a9 9 0 1 1 0 -18a9 8 0 0 1 9 8a4.5 4 0 0 1 -4.5 4h-2.5a2 2 0 0 0 -1 3.75a1.3 1.3 0 0 1 -1 2.25" />
  547. <circle cx="7.5" cy="10.5" r=".5" fill="currentColor" />
  548. <circle cx="12" cy="7.5" r=".5" fill="currentColor" />
  549. <circle cx="16.5" cy="10.5" r=".5" fill="currentColor" />
  550. </svg>
  551. ),
  552. message: ({ className }) => (
  553. <svg
  554. xmlns="http://www.w3.org/2000/svg"
  555. className={clsx('icon icon-tabler icon-tabler-message', className)}
  556. width="24"
  557. height="24"
  558. viewBox="0 0 24 24"
  559. strokeWidth="2"
  560. stroke="currentColor"
  561. fill="none"
  562. strokeLinecap="round"
  563. strokeLinejoin="round"
  564. >
  565. <path d="M4 21v-13a3 3 0 0 1 3 -3h10a3 3 0 0 1 3 3v6a3 3 0 0 1 -3 3h-9l-4 4" />
  566. <line x1="8" y1="9" x2="16" y2="9" />
  567. <line x1="8" y1="13" x2="14" y2="13" />
  568. </svg>
  569. ),
  570. settings: ({ className }) => (
  571. <svg
  572. xmlns="http://www.w3.org/2000/svg"
  573. className={clsx('icon icon-tabler icon-tabler-settings', className)}
  574. width="24"
  575. height="24"
  576. viewBox="0 0 24 24"
  577. strokeWidth="2"
  578. stroke="currentColor"
  579. fill="none"
  580. strokeLinecap="round"
  581. strokeLinejoin="round"
  582. >
  583. <path d="M10.325 4.317c.426 -1.756 2.924 -1.756 3.35 0a1.724 1.724 0 0 0 2.573 1.066c1.543 -.94 3.31 .826 2.37 2.37a1.724 1.724 0 0 0 1.065 2.572c1.756 .426 1.756 2.924 0 3.35a1.724 1.724 0 0 0 -1.066 2.573c.94 1.543 -.826 3.31 -2.37 2.37a1.724 1.724 0 0 0 -2.572 1.065c-.426 1.756 -2.924 1.756 -3.35 0a1.724 1.724 0 0 0 -2.573 -1.066c-1.543 .94 -3.31 -.826 -2.37 -2.37a1.724 1.724 0 0 0 -1.065 -2.572c-1.756 -.426 -1.756 -2.924 0 -3.35a1.724 1.724 0 0 0 1.066 -2.573c-.94 -1.543 .826 -3.31 2.37 -2.37c1 .608 2.296 .07 2.572 -1.065z" />
  584. <circle cx="12" cy="12" r="3" />
  585. </svg>
  586. ),
  587. adjustments: ({ className }) => (
  588. <svg
  589. xmlns="http://www.w3.org/2000/svg"
  590. className={clsx('icon icon-tabler icon-tabler-adjustments', className)}
  591. width="24"
  592. height="24"
  593. viewBox="0 0 24 24"
  594. strokeWidth="2"
  595. stroke="currentColor"
  596. fill="none"
  597. strokeLinecap="round"
  598. strokeLinejoin="round"
  599. >
  600. <circle cx="6" cy="10" r="2" />
  601. <line x1="6" y1="4" x2="6" y2="8" />
  602. <line x1="6" y1="12" x2="6" y2="20" />
  603. <circle cx="12" cy="16" r="2" />
  604. <line x1="12" y1="4" x2="12" y2="14" />
  605. <line x1="12" y1="18" x2="12" y2="20" />
  606. <circle cx="18" cy="7" r="2" />
  607. <line x1="18" y1="4" x2="18" y2="5" />
  608. <line x1="18" y1="9" x2="18" y2="20" />
  609. </svg>
  610. ),
  611. clipboard: ({ className }) => (
  612. <svg
  613. xmlns="http://www.w3.org/2000/svg"
  614. className={clsx('icon icon-tabler icon-tabler-clipboard-copy', className)}
  615. width="24"
  616. height="24"
  617. viewBox="0 0 24 24"
  618. strokeWidth="2"
  619. stroke="currentColor"
  620. fill="none"
  621. strokeLinecap="round"
  622. strokeLinejoin="round"
  623. >
  624. <path stroke="none" d="M0 0h24v24H0z" fill="none" />
  625. <path d="M9 5h-2a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h3m9 -9v-5a2 2 0 0 0 -2 -2h-2" />
  626. <path d="M13 17v-1a1 1 0 0 1 1 -1h1m3 0h1a1 1 0 0 1 1 1v1m0 3v1a1 1 0 0 1 -1 1h-1m-3 0h-1a1 1 0 0 1 -1 -1v-1" />
  627. <rect x="9" y="3" width="6" height="4" rx="2" />
  628. </svg>
  629. ),
  630. home: ({ className }) => (
  631. <svg
  632. xmlns="http://www.w3.org/2000/svg"
  633. className={clsx('icon icon-tabler icon-tabler-home', className)}
  634. width="24"
  635. height="24"
  636. viewBox="0 0 24 24"
  637. strokeWidth="2"
  638. stroke="currentColor"
  639. fill="none"
  640. strokeLinecap="round"
  641. strokeLinejoin="round"
  642. >
  643. <polyline points="5 12 3 12 12 3 21 12 19 12" />
  644. <path d="M5 12v7a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-7" />
  645. <path d="M9 21v-6a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v6" />
  646. </svg>
  647. ),
  648. box: ({ className }) => (
  649. <svg
  650. xmlns="http://www.w3.org/2000/svg"
  651. className={clsx('icon icon-tabler icon-tabler-box', className)}
  652. width="24"
  653. height="24"
  654. viewBox="0 0 24 24"
  655. strokeWidth="2"
  656. stroke="currentColor"
  657. fill="none"
  658. strokeLinecap="round"
  659. strokeLinejoin="round"
  660. >
  661. <polyline points="12 3 20 7.5 20 16.5 12 21 4 16.5 4 7.5 12 3" />
  662. <line x1="12" y1="12" x2="20" y2="7.5" />
  663. <line x1="12" y1="12" x2="12" y2="21" />
  664. <line x1="12" y1="12" x2="4" y2="7.5" />
  665. </svg>
  666. ),
  667. lifebuoy: ({ className }) => (
  668. <svg
  669. xmlns="http://www.w3.org/2000/svg"
  670. className={clsx('icon icon-tabler icon-tabler-lifebuoy', className)}
  671. width="24"
  672. height="24"
  673. viewBox="0 0 24 24"
  674. strokeWidth="2"
  675. stroke="currentColor"
  676. fill="none"
  677. strokeLinecap="round"
  678. strokeLinejoin="round"
  679. >
  680. <circle cx="12" cy="12" r="4" />
  681. <circle cx="12" cy="12" r="9" />
  682. <line x1="15" y1="15" x2="18.35" y2="18.35" />
  683. <line x1="9" y1="15" x2="5.65" y2="18.35" />
  684. <line x1="5.65" y1="5.65" x2="9" y2="9" />
  685. <line x1="18.35" y1="5.65" x2="15" y2="9" />
  686. </svg>
  687. ),
  688. code: ({ className }) => (
  689. <svg
  690. xmlns="http://www.w3.org/2000/svg"
  691. className={clsx('icon icon-tabler icon-tabler-code', className)}
  692. width="24"
  693. height="24"
  694. viewBox="0 0 24 24"
  695. strokeWidth="2"
  696. stroke="currentColor"
  697. fill="none"
  698. strokeLinecap="round"
  699. strokeLinejoin="round"
  700. >
  701. <polyline points="7 8 3 12 7 16" />
  702. <polyline points="17 8 21 12 17 16" />
  703. <line x1="14" y1="4" x2="10" y2="20" />
  704. </svg>
  705. ),
  706. versions: ({ className }) => (
  707. <svg
  708. xmlns="http://www.w3.org/2000/svg"
  709. className={clsx('icon icon-tabler icon-tabler-versions', className)}
  710. width="24"
  711. height="24"
  712. viewBox="0 0 24 24"
  713. strokeWidth="2"
  714. stroke="currentColor"
  715. fill="none"
  716. strokeLinecap="round"
  717. strokeLinejoin="round"
  718. >
  719. <rect x="10" y="5" width="10" height="14" rx="2" />
  720. <line x1="7" y1="7" x2="7" y2="17" />
  721. <line x1="4" y1="8" x2="4" y2="16" />
  722. </svg>
  723. ),
  724. maximize: ({ className }) => (
  725. <svg
  726. xmlns="http://www.w3.org/2000/svg"
  727. className={clsx('icon icon-tabler icon-tabler-maximize', className)}
  728. width="24"
  729. height="24"
  730. viewBox="0 0 24 24"
  731. strokeWidth="2"
  732. stroke="currentColor"
  733. fill="none"
  734. strokeLinecap="round"
  735. strokeLinejoin="round"
  736. >
  737. <path d="M4 8v-2a2 2 0 0 1 2 -2h2" />
  738. <path d="M4 16v2a2 2 0 0 0 2 2h2" />
  739. <path d="M16 4h2a2 2 0 0 1 2 2v2" />
  740. <path d="M16 20h2a2 2 0 0 0 2 -2v-2" />
  741. </svg>
  742. ),
  743. minimize: ({ className }) => (
  744. <svg
  745. xmlns="http://www.w3.org/2000/svg"
  746. className={clsx('icon icon-tabler icon-tabler-minimize', className)}
  747. width="24"
  748. height="24"
  749. viewBox="0 0 24 24"
  750. strokeWidth="2"
  751. stroke="currentColor"
  752. fill="none"
  753. strokeLinecap="round"
  754. strokeLinejoin="round"
  755. >
  756. <path d="M15 19v-2a2 2 0 0 1 2 -2h2" />
  757. <path d="M15 5v2a2 2 0 0 0 2 2h2" />
  758. <path d="M5 15h2a2 2 0 0 1 2 2v2" />
  759. <path d="M5 9h2a2 2 0 0 0 2 -2v-2" />
  760. </svg>
  761. ),
  762. 'external-link': ({ className }) => (
  763. <svg
  764. xmlns="http://www.w3.org/2000/svg"
  765. className={clsx('icon icon-tabler icon-tabler-external-link', className)}
  766. width="24"
  767. height="24"
  768. viewBox="0 0 24 24"
  769. strokeWidth="2"
  770. stroke="currentColor"
  771. fill="none"
  772. strokeLinecap="round"
  773. strokeLinejoin="round"
  774. >
  775. <path d="M11 7h-5a2 2 0 0 0 -2 2v9a2 2 0 0 0 2 2h9a2 2 0 0 0 2 -2v-5" />
  776. <line x1="10" y1="14" x2="20" y2="4" />
  777. <polyline points="15 4 20 4 20 9" />
  778. </svg>
  779. ),
  780. star: ({ className }) => (
  781. <svg
  782. xmlns="http://www.w3.org/2000/svg"
  783. className={clsx('icon icon-tabler icon-tabler-star', className)}
  784. width="24"
  785. height="24"
  786. viewBox="0 0 24 24"
  787. strokeWidth="2"
  788. stroke="currentColor"
  789. fill="none"
  790. strokeLinecap="round"
  791. strokeLinejoin="round"
  792. >
  793. <path d="M12 17.75l-6.172 3.245l1.179 -6.873l-5 -4.867l6.9 -1l3.086 -6.253l3.086 6.253l6.9 1l-5 4.867l1.179 6.873z" />
  794. </svg>
  795. ),
  796. 'target-arrow': ({ className }) => (
  797. <svg
  798. xmlns="http://www.w3.org/2000/svg"
  799. className={clsx('icon icon-tabler icon-tabler-target-arrow', className)}
  800. width="24"
  801. height="24"
  802. viewBox="0 0 24 24"
  803. strokeWidth="2"
  804. stroke="currentColor"
  805. fill="none"
  806. strokeLinecap="round"
  807. strokeLinejoin="round"
  808. >
  809. <circle cx="12" cy="12" r="1" />
  810. <path d="M12 7a5 5 0 1 0 5 5" />
  811. <path d="M13.004 3.055a9 9 0 1 0 7.941 7.945" />
  812. <path d="M15 6v3h3l3 -3h-3v-3z" />
  813. <path d="M15 9l-3 3" />
  814. </svg>
  815. ),
  816. brush: ({ className }) => (
  817. <svg
  818. xmlns="http://www.w3.org/2000/svg"
  819. className={clsx('icon icon-tabler icon-tabler-brush', className)}
  820. width="24"
  821. height="24"
  822. viewBox="0 0 24 24"
  823. strokeWidth="2"
  824. stroke="currentColor"
  825. fill="none"
  826. strokeLinecap="round"
  827. strokeLinejoin="round"
  828. >
  829. <path d="M3 21v-4a4 4 0 1 1 4 4h-4" />
  830. <path d="M21 3a16 16 0 0 0 -12.8 10.2" />
  831. <path d="M21 3a16 16 0 0 1 -10.2 12.8" />
  832. <path d="M10.6 9a9 9 0 0 1 4.4 4.4" />
  833. </svg>
  834. ),
  835. 'layout-dashboard': ({ className }) => (
  836. <svg
  837. xmlns="http://www.w3.org/2000/svg"
  838. className={clsx(
  839. 'icon icon-tabler icon-tabler-layout-dashboard',
  840. className
  841. )}
  842. width="24"
  843. height="24"
  844. viewBox="0 0 24 24"
  845. strokeWidth="2"
  846. stroke="currentColor"
  847. fill="none"
  848. strokeLinecap="round"
  849. strokeLinejoin="round"
  850. >
  851. <path d="M4 4h6v8h-6z" />
  852. <path d="M4 16h6v4h-6z" />
  853. <path d="M14 12h6v8h-6z" />
  854. <path d="M14 4h6v4h-6z" />
  855. </svg>
  856. ),
  857. 'sun-moon': ({ className }) => (
  858. <svg
  859. xmlns="http://www.w3.org/2000/svg"
  860. className={clsx('icon icon-tabler icon-tabler-sun-moon', className)}
  861. width="24"
  862. height="24"
  863. viewBox="0 0 24 24"
  864. strokeWidth="2"
  865. stroke="currentColor"
  866. fill="none"
  867. strokeLinecap="round"
  868. strokeLinejoin="round"
  869. >
  870. <path d="M9.173 14.83a4 4 0 1 1 5.657 -5.657" />
  871. <path d="M11.294 12.707l.174 .247a7.5 7.5 0 0 0 8.845 2.492a9 9 0 0 1 -14.671 2.914" />
  872. <path d="M3 12h1" />
  873. <path d="M12 3v1" />
  874. <path d="M5.6 5.6l.7 .7" />
  875. <path d="M3 21l18 -18" />
  876. </svg>
  877. ),
  878. 'circle-x-filled': ({ className }) => (
  879. <svg
  880. xmlns="http://www.w3.org/2000/svg"
  881. className={clsx(
  882. 'icon icon-tabler icon-tabler-circle-x-filled',
  883. className
  884. )}
  885. width="24"
  886. height="24"
  887. viewBox="0 0 24 24"
  888. strokeWidth="2"
  889. stroke="currentColor"
  890. fill="none"
  891. strokeLinecap="round"
  892. strokeLinejoin="round"
  893. >
  894. <path
  895. d="M17 3.34a10 10 0 1 1 -14.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 14.995 -8.336zm-6.489 5.8a1 1 0 0 0 -1.218 1.567l1.292 1.293l-1.292 1.293l-.083 .094a1 1 0 0 0 1.497 1.32l1.293 -1.292l1.293 1.292l.094 .083a1 1 0 0 0 1.32 -1.497l-1.292 -1.293l1.292 -1.293l.083 -.094a1 1 0 0 0 -1.497 -1.32l-1.293 1.292l-1.293 -1.292l-.094 -.083z"
  896. strokeWidth="0"
  897. fill="currentColor"
  898. ></path>
  899. </svg>
  900. ),
  901. 'circle-check-filled': ({ className }) => (
  902. <svg
  903. xmlns="http://www.w3.org/2000/svg"
  904. className={clsx(
  905. 'icon icon-tabler icon-tabler-circle-check-filled',
  906. className
  907. )}
  908. width="24"
  909. height="24"
  910. viewBox="0 0 24 24"
  911. strokeWidth="2"
  912. stroke="currentColor"
  913. fill="none"
  914. strokeLinecap="round"
  915. strokeLinejoin="round"
  916. >
  917. <path
  918. d="M17 3.34a10 10 0 1 1 -14.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 14.995 -8.336zm-1.293 5.953a1 1 0 0 0 -1.32 -.083l-.094 .083l-3.293 3.292l-1.293 -1.292l-.094 -.083a1 1 0 0 0 -1.403 1.403l.083 .094l2 2l.094 .083a1 1 0 0 0 1.226 0l.094 -.083l4 -4l.083 -.094a1 1 0 0 0 -.083 -1.32z"
  919. strokeWidth="0"
  920. fill="currentColor"
  921. ></path>
  922. </svg>
  923. ),
  924. 'alert-circle-filled': ({ className }) => (
  925. <svg
  926. xmlns="http://www.w3.org/2000/svg"
  927. className={clsx(
  928. 'icon icon-tabler icon-tabler-alert-circle-filled',
  929. className
  930. )}
  931. width="24"
  932. height="24"
  933. viewBox="0 0 24 24"
  934. strokeWidth="2"
  935. stroke="currentColor"
  936. fill="none"
  937. strokeLinecap="round"
  938. strokeLinejoin="round"
  939. >
  940. <path
  941. d="M12 2c5.523 0 10 4.477 10 10a10 10 0 0 1 -19.995 .324l-.005 -.324l.004 -.28c.148 -5.393 4.566 -9.72 9.996 -9.72zm.01 13l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007zm-.01 -8a1 1 0 0 0 -.993 .883l-.007 .117v4l.007 .117a1 1 0 0 0 1.986 0l.007 -.117v-4l-.007 -.117a1 1 0 0 0 -.993 -.883z"
  942. stroke-width="0"
  943. fill="currentColor"
  944. ></path>
  945. </svg>
  946. ),
  947. sparkles: ({ className }) => (
  948. <svg
  949. xmlns="http://www.w3.org/2000/svg"
  950. className={clsx('icon icon-tabler icon-tabler-sparkles', className)}
  951. width="24"
  952. height="24"
  953. viewBox="0 0 24 24"
  954. strokeWidth="2"
  955. stroke="currentColor"
  956. fill="none"
  957. strokeLinecap="round"
  958. strokeLinejoin="round"
  959. >
  960. <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
  961. <path d="M16 18a2 2 0 0 1 2 2a2 2 0 0 1 2 -2a2 2 0 0 1 -2 -2a2 2 0 0 1 -2 2zm0 -12a2 2 0 0 1 2 2a2 2 0 0 1 2 -2a2 2 0 0 1 -2 -2a2 2 0 0 1 -2 2zm-7 12a6 6 0 0 1 6 -6a6 6 0 0 1 -6 -6a6 6 0 0 1 -6 6a6 6 0 0 1 6 6z"></path>
  962. </svg>
  963. ),
  964. script: ({ className }) => (
  965. <svg
  966. xmlns="http://www.w3.org/2000/svg"
  967. className={clsx('icon icon-tabler icon-tabler-script', className)}
  968. width="24"
  969. height="24"
  970. viewBox="0 0 24 24"
  971. strokeWidth="2"
  972. stroke="currentColor"
  973. fill="none"
  974. strokeLinecap="round"
  975. strokeLinejoin="round"
  976. >
  977. <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
  978. <path d="M17 20h-11a3 3 0 0 1 0 -6h11a3 3 0 0 0 0 6h1a3 3 0 0 0 3 -3v-11a2 2 0 0 0 -2 -2h-10a2 2 0 0 0 -2 2v8"></path>
  979. </svg>
  980. ),
  981. link: ({ className }) => (
  982. <svg
  983. xmlns="http://www.w3.org/2000/svg"
  984. className={clsx('icon icon-tabler icon-tabler-link', className)}
  985. width="24"
  986. height="24"
  987. viewBox="0 0 24 24"
  988. strokeWidth="2"
  989. stroke="currentColor"
  990. fill="none"
  991. strokeLinecap="round"
  992. strokeLinejoin="round"
  993. >
  994. <path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path>
  995. <path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path>
  996. </svg>
  997. ),
  998. 'brand-linkedin': ({ className }) => (
  999. <svg
  1000. xmlns="http://www.w3.org/2000/svg"
  1001. className={clsx('icon icon-tabler icon-tabler-brand-linkedin', className)}
  1002. width="24"
  1003. height="24"
  1004. viewBox="0 0 24 24"
  1005. strokeWidth="2"
  1006. stroke="currentColor"
  1007. fill="none"
  1008. strokeLinecap="round"
  1009. strokeLinejoin="round"
  1010. >
  1011. <path d="M4 4m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z"></path>
  1012. <path d="M8 11l0 5"></path>
  1013. <path d="M8 8l0 .01"></path>
  1014. <path d="M12 16l0 -5"></path>
  1015. <path d="M16 16v-3a2 2 0 0 0 -4 0"></path>
  1016. </svg>
  1017. ),
  1018. };
  1019. export default function Icon({
  1020. name,
  1021. color,
  1022. filled = false,
  1023. className = null,
  1024. }: {
  1025. name: string
  1026. color?: string
  1027. filled?: boolean
  1028. className?: string | null
  1029. }) {
  1030. if (icons[name]) {
  1031. const Component = icons[name];
  1032. return (
  1033. <Component
  1034. className={clsx('icon', className, {
  1035. [`text-${color}`]: color,
  1036. 'icon-filled': filled,
  1037. })}
  1038. />
  1039. );
  1040. } else {
  1041. throw Error(`Icon ${name} doesn't exists`);
  1042. }
  1043. }