import { SwCanvas, Shape, Path, PathCommand } from 'react-thorvg-fiber';
<SwCanvas width={200} height={200}>
<Shape fill={[168, 85, 247, 255]} stroke={[139, 92, 246, 255]} strokeWidth={3}>
<Path
commands={[
PathCommand.MoveTo,
...Array(15).fill(PathCommand.LineTo),
PathCommand.Close
]}
points={[
{ x: 100, y: 20 },
{ x: 108, y: 52 },
{ x: 140, y: 44 },
{ x: 120, y: 72 },
{ x: 148, y: 92 },
{ x: 116, y: 100 },
{ x: 148, y: 108 },
{ x: 120, y: 128 },
{ x: 140, y: 156 },
{ x: 108, y: 148 },
{ x: 100, y: 180 },
{ x: 92, y: 148 },
{ x: 60, y: 156 },
{ x: 80, y: 128 },
{ x: 52, y: 108 },
{ x: 84, y: 100 },
{ x: 52, y: 92 },
{ x: 80, y: 72 },
{ x: 60, y: 44 },
{ x: 92, y: 52 }
]}
/>
</Shape>
</SwCanvas>