"use client"; import { useRef } from "react"; import { ArrowUpLeft, ChevronLeft, ChevronRight } from "lucide-react"; import { Container } from "@/components/Container"; import { Placeholder } from "@/components/Placeholder"; import { SlotLink } from "@/components/SlotLink"; import { glossyBar } from "@/lib/glossy"; import { parseAspectRatio } from "@/lib/static-images"; import type { SlotMediaItem } from "@/lib/static-images"; export function CategoryShowcase({ items, aspectRatio }: { items: SlotMediaItem[]; aspectRatio?: string }) { const scroller = useRef(null); const ratio = parseAspectRatio(aspectRatio); const scrollByCard = (direction: number) => { const node = scroller.current; if (!node) return; const card = node.querySelector("article"); const amount = card ? card.getBoundingClientRect().width + 20 : 300; node.scrollBy({ left: direction * amount, behavior: "smooth" }); }; return (

دسته بندی ها

دسته بندی فروشگاه لوازم خانگی برادران برقعی

{items.map((item) => (

{item.title}

{item.text ? (

{item.text}

) : null}
))}
); }