fix: prevent lottie from ssr

This commit is contained in:
Henry
2024-12-13 08:32:21 +00:00
parent 4e0ab2d00f
commit 0aca729737
2 changed files with 4 additions and 2 deletions

View File

@@ -1,4 +1,6 @@
import Lottie from "react-lottie-player";
import dynamic from "next/dynamic";
const Lottie = dynamic(() => import("react-lottie-player"), { ssr: false });
type IconProps = {
isPlaying: boolean;