import { renderToStaticMarkup } from 'react-dom/server';

export const getMarkupFromSVGComponent = (component: JSX.Element): string =>
  `data:image/svg+xml,${encodeURIComponent(renderToStaticMarkup(component))}`;
