mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
23 lines
549 B
TypeScript
23 lines
549 B
TypeScript
"use client";
|
|
import * as excalidrawLib from "@excalidraw/excalidraw";
|
|
import { Excalidraw } from "@excalidraw/excalidraw";
|
|
|
|
import "@excalidraw/excalidraw/index.css";
|
|
|
|
import App from "../../with-script-in-browser/components/ExampleApp";
|
|
|
|
const ExcalidrawWrapper: React.FC = () => {
|
|
return (
|
|
<>
|
|
<App
|
|
appTitle={"Excalidraw with Nextjs Example"}
|
|
useCustom={(api: any, args?: any[]) => {}}
|
|
excalidrawLib={excalidrawLib}
|
|
>
|
|
<Excalidraw />
|
|
</App>
|
|
</>
|
|
);
|
|
};
|
|
|
|
export default ExcalidrawWrapper;
|