- Please sign in
+
diff --git a/src/app/sign-in/page.tsx b/src/app/sign-in/page.tsx
index 97752f3..8acb668 100644
--- a/src/app/sign-in/page.tsx
+++ b/src/app/sign-in/page.tsx
@@ -1,5 +1,6 @@
"use client";
+import OpenInternalLink from "@/components/internal-link";
import LoadingSpinner from "@/components/loading-spinner";
import { RedirectToSignIn, SignedIn, SignedOut } from "@clerk/nextjs";
import Link from "next/link";
@@ -18,13 +19,10 @@ export default function SignIn() {
You are already signed in
diff --git a/src/components/document-viewer.tsx b/src/components/document-viewer.tsx
index a8200bf..49a9356 100644
--- a/src/components/document-viewer.tsx
+++ b/src/components/document-viewer.tsx
@@ -5,6 +5,7 @@ import { Button } from "./ui/button";
import { useRouter } from "next/navigation";
import { getUserData } from "@/app/actions";
import type { AdviceAPIType } from "@/types";
+import OpenInternalLink from "./internal-link";
export async function getPaperlessDocument(
documentId: number,
@@ -149,7 +150,9 @@ export default function DocumentViewer(props: { id: number }) {
>
diff --git a/src/components/open-link-in-new-page.tsx b/src/components/external-link.tsx
similarity index 69%
rename from src/components/open-link-in-new-page.tsx
rename to src/components/external-link.tsx
index b5d7b4d..0a9664c 100644
--- a/src/components/open-link-in-new-page.tsx
+++ b/src/components/external-link.tsx
@@ -1,20 +1,24 @@
import { ExternalLink } from "lucide-react";
import React from "react";
+import { cn } from "@/lib/utils";
+
interface OpenLinkInNewPageProps {
children: React.ReactNode;
href: string;
+ className?: string;
}
-export default function OpenLinkInNewPage({
+export default function OpenExternalLInk({
children,
href,
+ className,
}: OpenLinkInNewPageProps) {
return (
{children}
diff --git a/src/components/internal-link.tsx b/src/components/internal-link.tsx
new file mode 100644
index 0000000..19cc0e9
--- /dev/null
+++ b/src/components/internal-link.tsx
@@ -0,0 +1,26 @@
+import React from "react";
+
+import { cn } from "@/lib/utils";
+
+interface OpenLinkInNewPageProps {
+ children: React.ReactNode;
+ href: string;
+ className?: string;
+}
+
+export default function OpenInternalLink({
+ children,
+ href,
+ className,
+}: OpenLinkInNewPageProps) {
+ return (
+
+ {children}
+
+ );
+}
+ Please sign in
- Go
-
+ Go{" "}
+
Home
-
+
Your web browser doesn't have a PDF plugin. Instead you can
- click here to download the PDF file.
+