From 04572a8e5081b1e4871e273cde9dbaaa44c52fe0 Mon Sep 17 00:00:00 2001
From: MohamedBassem <me@mbassem.com>
Date: Wed, 13 Mar 2024 21:43:44 +0000
Subject: structure: Create apps dir and copy tooling dir from t3-turbo repo

---
 .../components/dashboard/bookmarks/Bookmarks.tsx   | 32 ----------------------
 1 file changed, 32 deletions(-)
 delete mode 100644 packages/web/components/dashboard/bookmarks/Bookmarks.tsx

(limited to 'packages/web/components/dashboard/bookmarks/Bookmarks.tsx')

diff --git a/packages/web/components/dashboard/bookmarks/Bookmarks.tsx b/packages/web/components/dashboard/bookmarks/Bookmarks.tsx
deleted file mode 100644
index 1ad3670c..00000000
--- a/packages/web/components/dashboard/bookmarks/Bookmarks.tsx
+++ /dev/null
@@ -1,32 +0,0 @@
-import { redirect } from "next/navigation";
-import BookmarksGrid from "./BookmarksGrid";
-import { ZGetBookmarksRequest } from "@hoarder/trpc/types/bookmarks";
-import { api } from "@/server/api/client";
-import { getServerAuthSession } from "@/server/auth";
-
-export default async function Bookmarks({
-  favourited,
-  archived,
-  title,
-  showDivider,
-}: ZGetBookmarksRequest & { title: string; showDivider?: boolean }) {
-  const session = await getServerAuthSession();
-  if (!session) {
-    redirect("/");
-  }
-
-  const query = {
-    favourited,
-    archived,
-  };
-
-  const bookmarks = await api.bookmarks.getBookmarks(query);
-
-  return (
-    <div className="container flex flex-col gap-3">
-      <div className="text-2xl">{title}</div>
-      {showDivider && <hr />}
-      <BookmarksGrid query={query} bookmarks={bookmarks.bookmarks} />
-    </div>
-  );
-}
-- 
cgit v1.2.3-70-g09d2

