chore: trying to add text editor to panel
This commit is contained in:
24
app/app/editor/page.tsx
Normal file
24
app/app/editor/page.tsx
Normal 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;
|
||||||
14
app/app/files/edit/page.tsx
Normal file
14
app/app/files/edit/page.tsx
Normal 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;
|
||||||
Reference in New Issue
Block a user