kupos-service-item-package
Version:
A reusable service item component
9 lines (8 loc) • 462 B
JavaScript
import React from "react";
import Lottie from "lottie-react";
// Separate component for Lottie animations to avoid hooks errors
const LottieIcon = ({ animationData, size = "18px", }) => {
return (React.createElement("div", { style: { width: size, height: size, marginRight: "5px" } },
React.createElement(Lottie, { animationData: animationData, loop: true, autoplay: true, style: { width: "100%", height: "100%" } })));
};
export default LottieIcon;