import { Heart, Loader2, Sparkles } from "lucide-react"; import type { Ref } from "react"; import type { FeaturedImage } from "./types"; import { MASONRY_HEIGHTS } from "./utils"; type LovartFeaturedGalleryProps = { activeCategory: string; categories: string[]; featuredItems: FeaturedImage[]; featuredLoadMoreRef: Ref; featuredSectionRef: Ref; isLoadingFeatured: boolean; isLoadingMoreFeatured: boolean; setActiveCategory: (category: string) => void; }; export function LovartFeaturedGallery({ activeCategory, categories, featuredItems, featuredLoadMoreRef, featuredSectionRef, isLoadingFeatured, isLoadingMoreFeatured, setActiveCategory, }: LovartFeaturedGalleryProps) { return (

灵感发现

{categories.map((category) => ( ))}
{featuredItems.length === 0 ? (
{isLoadingFeatured ? "灵感内容加载中..." : "当前没有可展示的灵感数据。"}
) : (
{featuredItems.map((item, index) => ( ))}
)}
{isLoadingMoreFeatured ? (
正在加载更多灵感...
) : null}
); }