mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
19 lines
338 B
TypeScript
19 lines
338 B
TypeScript
import React, { Ref } from 'react';
|
|
|
|
export default function ReactInlineSVG({
|
|
src,
|
|
innerRef,
|
|
cacheRequests,
|
|
preProcessor,
|
|
...rest
|
|
}: {
|
|
src: string;
|
|
innerRef: Ref<SVGSVGElement>;
|
|
cacheRequests: boolean;
|
|
preProcessor: () => string;
|
|
}) {
|
|
return <svg id={src} ref={innerRef} {...rest} />;
|
|
}
|
|
|
|
export const cacheStore = {};
|