diff --git a/src/app/snippets/new/page.tsx b/src/app/snippets/new/page.tsx index 0595ad0..1341035 100644 --- a/src/app/snippets/new/page.tsx +++ b/src/app/snippets/new/page.tsx @@ -1,18 +1,23 @@ "use client"; +import { useState } from "react"; import * as actions from "@/actions"; +import SnippetEditor from "@/components/snippet-create-form"; import { useActionState } from "react"; export default function SnippetCreatePage() { const [formState, action] = useActionState(actions.createSnippet, { message: "", }); - + const [code, setCode] = useState(""); + const handleCodeChange = (newCode: string = "") => { + setCode(newCode); + }; return (