Icon.tsx 32 KB

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