diff options
| author | kamtschatka <simon.schatka@gmx.at> | 2024-07-21 23:36:11 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-21 22:36:11 +0100 |
| commit | eb0a28ee6b1dd15fb459e0900f5e885ac5c92fec (patch) | |
| tree | a28bb084b2f81cee306006df40fa563b73ef4689 /apps/web/components/dashboard/bookmarks/BookmarkedTextViewer.tsx | |
| parent | 98fc5598a82c9015fa8e4f84a8bc4d59af1f0b21 (diff) | |
| download | karakeep-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.tsx | 23 |
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> - ); -} |
