import Image from "next/image"; import { SlotImage } from "@/components/SlotImage"; import { brands } from "@/lib/data"; import type { StaticImageWithUrl } from "@/lib/static-images"; import { slotAlt, slotAspectStyle } from "@/lib/static-images"; import { Carousel } from "./Carousel"; type Props = { images?: StaticImageWithUrl[]; aspectRatio?: string; }; export function Brands({ images = [], aspectRatio }: Props) { return (

برندها

{images.length > 0 ? images.map((image) => { const card = (
); return image.linkUrl ? ( {card} ) : (
{card}
); }) : brands.map((brand) => (
{brand.name}
))}
); }