import { motion } from "framer-motion"; import { forwardRef } from "react"; export const Shield = forwardRef((props: any, ref) => { const { shape } = props; const GradientType = shape?.gradient?.type === "radialGradient" ? "radialGradient" : "linearGradient"; return ( {shape?.image?.enabled && shape?.image?.urls?.length > 0 && ( )} {shape?.gradient?.enabled ? ( <> {shape?.gradient?.colours?.map((color: any, c: number) => ( ))} ) : ( )} {shape?.transparency && props?.children && props.children} 0 ? 1 - shape?.border?.width / 350 : 1, scaleY: shape?.border?.width > 0 ? 1 - shape?.border?.width / 350 : 1, rotate: shape?.position?.angle ?? 0, }} stroke={shape?.border?.colour} // strokeLinejoin="round" strokeWidth={shape?.border?.width} onClick={props?.onClick ? props.onClick : () => {}} /> {!shape?.transparency && props?.children && props.children} ); });