MCPcopy Create free account
hub / github.com/Surfer-Org/Protocol / LoadingIcon

Function LoadingIcon

docs/src/components/Search.jsx:101–128  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

99}
100
101function LoadingIcon(props) {
102 let id = useId()
103
104 return (
105 <svg viewBox="0 0 20 20" fill="none" aria-hidden="true" {...props}>
106 <circle cx="10" cy="10" r="5.5" strokeLinejoin="round" />
107 <path
108 stroke={`url(#${id})`}
109 strokeLinecap="round"
110 strokeLinejoin="round"
111 d="M15.5 10a5.5 5.5 0 1 0-5.5 5.5"
112 />
113 <defs>
114 <linearGradient
115 id={id}
116 x1="13"
117 x2="9.5"
118 y1="9"
119 y2="15"
120 gradientUnits="userSpaceOnUse"
121 >
122 <stop stopColor="currentColor" />
123 <stop offset="1" stopColor="currentColor" stopOpacity="0" />
124 </linearGradient>
125 </defs>
126 </svg>
127 )
128}
129
130function HighlightQuery({ text, query }) {
131 return (

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected