MCPcopy Create free account
hub / github.com/dailydotdev/apps / LottieAnimation

Function LottieAnimation

packages/shared/src/components/LottieAnimation.tsx:20–43  ·  view source on GitHub ↗
({
  className,
  src,
  basePath = lottieAssetsBasePath,
  loop = true,
  autoplay = true,
  ...lottieProps
}: LottieAnimationProps)

Source from the content-addressed store, hash-verified

18);
19
20export 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};

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected