import { Defs, Polygon, RectProps } from '../../jsx';
export const SimpleArrow = ({
width = 25,
height = 25,
colorPrimary = '#6699FF',
rotation = 0,
...rest
}: RectProps & {
colorPrimary: string;
rotation?: number;
}) => {
const strokeId = `gradient-arrow-stroke-${colorPrimary.replace('#', '')}`;
const fillId = `gradient-arrow-fill-${colorPrimary.replace('#', '')}`;
const shaftWidth = Math.round(width * 0.515);
const shaftTop = Math.round(height * 0.275);
const shaftBottom = Math.round(height * 0.875);
const points = [
{ x: 0, y: shaftTop },
{ x: shaftWidth, y: shaftTop },
{ x: shaftWidth, y: height * 0.075 },
{ x: width, y: height * 0.575 },
{ x: shaftWidth, y: height * 1.075 },
{ x: shaftWidth, y: shaftBottom },
{ x: 0, y: shaftBottom },
];
const centerX = width / 2;
const centerY = height / 2;
const transform = `rotate(${rotation} ${centerX} ${centerY})`;
return (
<>
>
);
};