"use client"; import { Card, CardContent, CardDescription, CardHeader, CardTitle, } from "@/components/ui/card"; import { Button } from "@/components/ui/button"; import { useAuth } from "@/contexts/auth-context"; import { Lock, LogIn } from "lucide-react"; interface LoginRequiredProps { title?: string; description?: string; feature?: string; } export function LoginRequired({ title = "Authentication Required", description = "You need to sign in to access this feature", feature, }: LoginRequiredProps) { const { login } = useAuth(); return (
{title} {feature ? `You need to sign in to access ${feature}` : description}
); }