import React from 'react';
import {useShopStore} from "./shop_store";
import {ProductItem} from "./ProductItem";


export function CatalogSearchResult() {
    const cards_to_display = useShopStore((state) => state.listed_cards);
    return ( <>
        {cards_to_display.map((item, _) => {
                return (
                    <ProductItem card_index={item} key={"searched_" + item} />
                )
            })}
        </>
    )
}