diff --git a/src/app/snippets/[id]/edit/page.tsx b/src/app/snippets/[id]/edit/page.tsx
index 1608823..867b1f7 100644
--- a/src/app/snippets/[id]/edit/page.tsx
+++ b/src/app/snippets/[id]/edit/page.tsx
@@ -1,4 +1,5 @@
import { db } from "@/db";
+import Link from "next/link";
import { notFound } from "next/navigation";
import SnippetEditForm from "@/components/snippet-edit-form";
@@ -20,7 +21,17 @@ export default async function SnippetEditPage(props: SnippetEditPageProps) {
}
return (
-
+
+
{snippet.title}
+
+
+ Back
+
+
+
+
+
+
);
}
diff --git a/src/app/snippets/new/page.tsx b/src/app/snippets/new/page.tsx
index 1341035..f1b3628 100644
--- a/src/app/snippets/new/page.tsx
+++ b/src/app/snippets/new/page.tsx
@@ -1,9 +1,10 @@
"use client";
+import Link from "next/link";
import { useState } from "react";
import * as actions from "@/actions";
-import SnippetEditor from "@/components/snippet-create-form";
import { useActionState } from "react";
+import SnippetEditor from "@/components/snippet-create-form";
export default function SnippetCreatePage() {
const [formState, action] = useActionState(actions.createSnippet, {
@@ -14,37 +15,46 @@ export default function SnippetCreatePage() {
setCode(newCode);
};
return (
-