diff --git a/src/app/@preview.audio.tsx b/src/app/@preview.audio.tsx index eaf7e51..ba5d2dc 100644 --- a/src/app/@preview.audio.tsx +++ b/src/app/@preview.audio.tsx @@ -1,7 +1,7 @@ "use client"; +import dynamic from "next/dynamic"; import { useEffect, useState } from "react"; -import AudioPlayer from "react-h5-audio-player"; import "react-h5-audio-player/lib/styles.css"; import { z } from "zod"; import { Schema_File } from "~/schema"; @@ -10,7 +10,27 @@ import { cn } from "~/utils"; import Icon from "~/components/Icon"; import { CreateDownloadToken } from "./actions"; -import "./r5-style.css"; + +// import "./r5-style.css"; + +const Plyr = dynamic(() => import("plyr-react"), { + ssr: false, + loading: () => ( +
Loading player...
++ Looks like this file size exceed the preview size limit +
+Loading manga content...
+Please wait while we downloading the content for preview
+Loading player...
+