'use strict';

var jsxRuntime = require('react/jsx-runtime');
var characterTypes = require('../characterTypes.js');

const Leg = ({ colors, side, scale = 1, transform, strokeWidth = 1.4 }) => {
    const pants = characterTypes.pick(colors, 0, "var(--anim-shirt, #3B82F6)");
    const shoe = characterTypes.pick(colors, 1, "var(--anim-outfit-2, #2563EB)");
    const stroke = characterTypes.pick(colors, 2, "var(--anim-stroke, #111)");
    const sx = side;
    return (jsxRuntime.jsxs("g", { transform: `${transform !== null && transform !== void 0 ? transform : ""} scale(${scale})`, stroke: stroke, strokeWidth: strokeWidth, strokeLinecap: "round", children: [jsxRuntime.jsx("line", { x1: 0, y1: 0, x2: sx * 2, y2: 28, stroke: pants, strokeWidth: strokeWidth + 2.5 }), jsxRuntime.jsx("line", { x1: sx * 2, y1: 28, x2: sx * 1, y2: 52, stroke: pants, strokeWidth: strokeWidth + 2 }), jsxRuntime.jsx("ellipse", { cx: sx * 1 + sx * 4, cy: 54, rx: 7, ry: 4, fill: shoe })] }));
};

exports.Leg = Leg;
//# sourceMappingURL=legs.js.map
