aboutsummaryrefslogtreecommitdiffstats
path: root/apps/web/components/dashboard/bookmarks/BookmarkedTextViewer.tsx
diff options
context:
space:
mode:
authorkamtschatka <simon.schatka@gmx.at>2024-07-21 23:36:11 +0200
committerGitHub <noreply@github.com>2024-07-21 22:36:11 +0100
commiteb0a28ee6b1dd15fb459e0900f5e885ac5c92fec (patch)
treea28bb084b2f81cee306006df40fa563b73ef4689 /apps/web/components/dashboard/bookmarks/BookmarkedTextViewer.tsx
parent98fc5598a82c9015fa8e4f84a8bc4d59af1f0b21 (diff)
downloadkarakeep-eb0a28ee6b1dd15fb459e0900f5e885ac5c92fec.tar.zst
refactor: Remove unused BookmarkedTextViewer (#310)
Diffstat (limited to 'apps/web/components/dashboard/bookmarks/BookmarkedTextViewer.tsx')
-rw-r--r--apps/web/components/dashboard/bookmarks/BookmarkedTextViewer.tsx23
1 files changed, 0 insertions, 23 deletions
diff --git a/apps/web/components/dashboard/bookmarks/BookmarkedTextViewer.tsx b/apps/web/components/dashboard/bookmarks/BookmarkedTextViewer.tsx
deleted file mode 100644
index 88382cf7..00000000
--- a/apps/web/components/dashboard/bookmarks/BookmarkedTextViewer.tsx
+++ /dev/null
@@ -1,23 +0,0 @@
-import { Dialog, DialogContent } from "@/components/ui/dialog";
-import Markdown from "react-markdown";
-import remarkGfm from "remark-gfm";
-
-export function BookmarkedTextViewer({
- content,
- open,
- setOpen,
-}: {
- content: string;
- open: boolean;
- setOpen: (open: boolean) => void;
-}) {
- return (
- <Dialog open={open} onOpenChange={setOpen}>
- <DialogContent className="max-h-[75%] overflow-auto">
- <Markdown remarkPlugins={[remarkGfm]} className="prose">
- {content}
- </Markdown>
- </DialogContent>
- </Dialog>
- );
-}