2024-01-21 23:08:25 +08:00
|
|
|
"use client";
|
2024-02-25 10:27:33 +08:00
|
|
|
import dynamic from "next/dynamic";
|
2024-01-21 23:08:25 +08:00
|
|
|
import ReduxProvider from "@/app/store/ReduxProvider";
|
2024-02-25 10:27:33 +08:00
|
|
|
// import QEditor from "@/components/QuillEditor";
|
2024-01-21 23:08:25 +08:00
|
|
|
|
2024-02-25 10:27:33 +08:00
|
|
|
// 动态导入 QuillEditor 组件,禁用 SSR
|
|
|
|
const QEditor = dynamic(() => import("@/components/QuillEditor"), {
|
|
|
|
ssr: false,
|
|
|
|
});
|
2024-02-12 20:55:14 +08:00
|
|
|
export default function QuillWrapper({ lng }) {
|
2024-01-21 23:08:25 +08:00
|
|
|
return (
|
|
|
|
<ReduxProvider>
|
2024-02-12 20:55:14 +08:00
|
|
|
<QEditor lng={lng} />
|
2024-01-21 23:08:25 +08:00
|
|
|
</ReduxProvider>
|
|
|
|
);
|
|
|
|
}
|