import { ArrowRight, FileText, Rocket, Globe, Gauge, Link, Bell, AlertTriangle, Settings, } from "lucide-react"; import { useUserGuideTheme } from "./styles/useUserGuideTheme"; import "./CollectionPage.css"; // Map icon names to actual Lucide components const iconMap = { Rocket, Globe, Gauge, Link, Bell, AlertTriangle, Settings, FileText, }; const CollectionPage = ({ collection, onBack, onArticleClick }) => { const { colors, typography, spacing, border } = useUserGuideTheme(); const IconComponent = iconMap[collection.icon] || Rocket; return (
{/* Header */}
{/* Collection Header */}

{collection.title}

{collection.description}

{collection.articleCount} articles in this collection
{/* Articles List */}
{collection.articles.map((article, index) => (
onArticleClick(article.id)} className="user-guide-article-row" style={{ display: "flex", alignItems: "center", justifyContent: "space-between", padding: spacing.lg, borderBottom: index < collection.articles.length - 1 ? border.default : "none", cursor: "pointer", }} >
{article.title} {article.description}
))}
); }; export default CollectionPage;