import { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, } from "@/components/ui/alert-dialog"; import Link from "next/link"; export interface LoginPromptProps { loginRedirectMessage: string; onOpenChange: (open: boolean) => void; } export default function LoginPrompt(props: LoginPromptProps) { return ( Sign in to Khoj to continue {props.loginRedirectMessage}. By logging in, you agree to our{" "} Terms of Service. Dismiss { window.location.href = `/login?next=${encodeURIComponent(window.location.pathname)}`; }} > {" "} {/* Redirect to login page */} Login ); }