({
className,
src,
basePath = lottieAssetsBasePath,
loop = true,
autoplay = true,
...lottieProps
}: LottieAnimationProps)
| 18 | ); |
| 19 | |
| 20 | export const LottieAnimation = ({ |
| 21 | className, |
| 22 | src, |
| 23 | basePath = lottieAssetsBasePath, |
| 24 | loop = true, |
| 25 | autoplay = true, |
| 26 | ...lottieProps |
| 27 | }: LottieAnimationProps): ReactElement => { |
| 28 | const { data: animationData } = useQuery( |
| 29 | lottieAnimationQueryOptions({ src, basePath }), |
| 30 | ); |
| 31 | |
| 32 | return ( |
| 33 | <Suspense fallback={<div className={className} />}> |
| 34 | <Lottie |
| 35 | {...lottieProps} |
| 36 | className={className} |
| 37 | loop={loop} |
| 38 | autoplay={autoplay} |
| 39 | animationData={animationData} |
| 40 | /> |
| 41 | </Suspense> |
| 42 | ); |
| 43 | }; |
nothing calls this directly
no test coverage detected