soccer-jersey-fixed
Version:
Generate soccer jerseys in SVG format. Fork of the original soccer-jersey package, so that @svgdotjs/svg.js dependency is retrieved from npmjs rather than github
7 lines (6 loc) • 369 B
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
import SoccerJersey from '../index';
export const ReactTeamPage = (props) => {
const jerseyImgSrc = SoccerJersey.draw(props); //
return (_jsx("div", Object.assign({ style: { textAlign: 'center' } }, { children: _jsx("img", { src: jerseyImgSrc, style: { display: 'inline-block', maxWidth: 480 } }) })));
};