MCPcopy Index your code
hub / github.com/Detaysoft/react-chat-elements / buildURL

Function buildURL

src/LocationMessage/LocationMessage.tsx:10–17  ·  view source on GitHub ↗
(url: string)

Source from the content-addressed store, hash-verified

8
9const LocationMessage: React.FC<ILocationMessageProps> = ({ markerColor = 'red', target = '_blank', zoom = '14', ...props }) => {
10 const buildURL = (url: string) => {
11 return url
12 .replace(/LATITUDE/g, props?.data.latitude)
13 .replace(/LONGITUDE/g, props?.data.longitude)
14 .replace('MARKER_COLOR', markerColor)
15 .replace('ZOOM', zoom)
16 .replace('KEY', props.apiKey)
17 }
18 const className = () => {
19 var _className = classNames('rce-mbox-location', props.className)
20

Callers 1

LocationMessageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…