Skip to content

Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.

chore: cleanup unused imports

Marc Seitzc35768f28a1d
diff --git a/lib/swr/use-stats.ts b/lib/swr/use-stats.ts
index ba8c0ffd..385fcc08 100644
--- a/lib/swr/use-stats.ts
+++ b/lib/swr/use-stats.ts
@@ -1,8 +1,7 @@
import { useRouter } from "next/router";
import useSWR from "swr";
import { fetcher } from "@/lib/utils";
-import { LinkWithViews } from "@/lib/types";
-import { Document, View } from "@prisma/client";
+import { View } from "@prisma/client";
interface GroupedView {
viewerEmail: string;
diff --git a/pages/api/documents/[id]/index.ts b/pages/api/documents/[id]/index.ts
index bceedf6f..45cbcfbe 100644
--- a/pages/api/documents/[id]/index.ts
+++ b/pages/api/documents/[id]/index.ts
@@ -2,8 +2,6 @@ import { NextApiRequest, NextApiResponse } from "next";
import { getServerSession } from "next-auth/next";
import prisma from "@/lib/prisma";
import { authOptions } from "../../auth/[...nextauth]";
-import { CustomUser } from "@/lib/types";
-import { getExtension } from "@/lib/utils";
export default async function handle(
req: NextApiRequest,