bigbuffet-rw/app/soapbox/components/__mocks__/react-inlinesvg.tsx
2022-04-10 12:56:15 -05:00

15 lines
335 B
TypeScript

import * as 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;