Files
hatchet/frontend/docs/components/DynamicLottie.tsx
abelanger5 ac167780ec docs: seed and extra env var (#1465)
* docs: seed and extra env var

* fix: linting
2025-04-01 08:55:49 -04:00

19 lines
542 B
TypeScript

import dynamic from 'next/dynamic';
import { ComponentProps } from 'react';
// Dynamically import the Lottie component with SSR disabled
const LottiePlayer = dynamic(
() => import('react-lottie-player').then((mod) => mod.default),
{ ssr: false }
);
export type DynamicLottieProps = ComponentProps<typeof LottiePlayer>;
// Export the dynamic component with the same props as the original
function DynamicLottie(props: DynamicLottieProps) {
return <LottiePlayer {...props} />;
}
// Using CommonJS export
export default DynamicLottie;