SourceIcon.js 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. import React from 'react';
  2. var LvlIcon = function LvlIcon() {
  3. return /*#__PURE__*/React.createElement("svg", {
  4. width: "20",
  5. height: "20",
  6. viewBox: "0 0 20 20"
  7. }, /*#__PURE__*/React.createElement("path", {
  8. d: "M17 6v12c0 .52-.2 1-1 1H4c-.7 0-1-.33-1-1V2c0-.55.42-1 1-1h8l5 5zM14 8h-3.13c-.51 0-.87-.34-.87-.87V4",
  9. stroke: "currentColor",
  10. fill: "none",
  11. fillRule: "evenodd",
  12. strokeLinejoin: "round"
  13. }));
  14. };
  15. export function SourceIcon(props) {
  16. switch (props.type) {
  17. case 'lvl1':
  18. return /*#__PURE__*/React.createElement(LvlIcon, null);
  19. case 'content':
  20. return /*#__PURE__*/React.createElement(ContentIcon, null);
  21. default:
  22. return /*#__PURE__*/React.createElement(AnchorIcon, null);
  23. }
  24. }
  25. function AnchorIcon() {
  26. return /*#__PURE__*/React.createElement("svg", {
  27. width: "20",
  28. height: "20",
  29. viewBox: "0 0 20 20"
  30. }, /*#__PURE__*/React.createElement("path", {
  31. d: "M13 13h4-4V8H7v5h6v4-4H7V8H3h4V3v5h6V3v5h4-4v5zm-6 0v4-4H3h4z",
  32. stroke: "currentColor",
  33. fill: "none",
  34. fillRule: "evenodd",
  35. strokeLinecap: "round",
  36. strokeLinejoin: "round"
  37. }));
  38. }
  39. function ContentIcon() {
  40. return /*#__PURE__*/React.createElement("svg", {
  41. width: "20",
  42. height: "20",
  43. viewBox: "0 0 20 20"
  44. }, /*#__PURE__*/React.createElement("path", {
  45. d: "M17 5H3h14zm0 5H3h14zm0 5H3h14z",
  46. stroke: "currentColor",
  47. fill: "none",
  48. fillRule: "evenodd",
  49. strokeLinejoin: "round"
  50. }));
  51. }