import Link from "next/link"; import { GraduationCap, Building2, BookOpen } from "lucide-react"; import { Card, CardContent, CardFooter, CardHeader, CardTitle, } from "@/shared/components/ui/card"; import { Badge } from "@/shared/components/ui/badge"; import { cn } from "@/shared/lib/utils"; import { Textbook } from "../types"; interface TextbookCardProps { textbook: Textbook; hrefBase?: string; } export function TextbookCard({ textbook, hrefBase }: TextbookCardProps) { const base = hrefBase || "/teacher/textbooks"; return (
{/* Fallback Cover Visualization */}
{/* Decorative Background Pattern */}
{textbook.subject} {textbook.title}
{textbook.grade}
{textbook.publisher || "Unknown Publisher"}
{textbook._count?.chapters || 0} Chapters
); }