feat: feedback (#156)

* minimal tiptap

* wip

* img edit block

* wip

* fix
This commit is contained in:
Aslam authored and GitHub committed 2024-09-10 13:58:58 +03:00
1 parent 4ea3a179e0
commit 711fe35e1a
62 files changed
+2689 -6

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
import { currentUser } from "@clerk/nextjs/server"
import { createServerActionProcedure, ZSAError } from "zsa"
export const authedProcedure = createServerActionProcedure()
.handler(async () => {
try {
const clerkUser = await currentUser()
return { clerkUser }
} catch {
throw new ZSAError("NOT_AUTHORIZED", "User not authenticated")
}
})
.createServerAction()