Files
ncd-fe/src/components/__mocks__/react-inlinesvg.tsx
2023-10-02 13:54:02 -05:00

16 lines
330 B
TypeScript

import React from 'react';
interface IInlineSVG {
loader?: JSX.Element;
}
const InlineSVG: React.FC<IInlineSVG> = ({ loader }): JSX.Element => {
if (loader) {
return loader;
} else {
throw 'You used react-inlinesvg without a loader! This will cause jumpy loading during render.';
}
};
export default InlineSVG;