mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-04-14 16:40:58 -04:00
22 lines
569 B
TypeScript
22 lines
569 B
TypeScript
import dynamic from "next/dynamic";
|
|
import "../common.scss";
|
|
|
|
// Since client components get prerenderd on server as well hence importing the excalidraw stuff dynamically
|
|
// with ssr false
|
|
const Excalidraw = dynamic(
|
|
async () => (await import("../excalidrawWrapper")).default,
|
|
{
|
|
ssr: false,
|
|
},
|
|
);
|
|
|
|
export default function Page() {
|
|
return (
|
|
<>
|
|
<a href="/">Switch to App router</a>
|
|
<h1 className="page-title">Pages Router</h1>
|
|
{/* @ts-expect-error - https://github.com/vercel/next.js/issues/42292 */}
|
|
<Excalidraw />
|
|
</>
|
|
);
|
|
}
|