chore: trying to add text editor to panel

This commit is contained in:
2024-09-09 15:39:15 +00:00
parent 921248b5c6
commit ba6e5605c9
2 changed files with 38 additions and 0 deletions

24
app/app/editor/page.tsx Normal file
View File

@@ -0,0 +1,24 @@
"use client";
import React from "react";
import Navigation from "@/components/ConsoleNavigation";
import Editor from "@/components/TextEditor";
const page = () => {
const handleEditorChange = (value: string) => {
console.log(value);
};
return (
<>
<Navigation />
<section className="container mx-auto">
<Editor />
</section>
</>
);
};
export default page;

View File

@@ -0,0 +1,14 @@
"use client";
import React from "react";
import { useSearchParams } from "next/navigation";
function Page() {
const searchParams = useSearchParams();
const serverId = searchParams.get("serverid");
return <div>{serverId}</div>;
}
export default Page;