2024-02-22 17:26:07 +08:00
|
|
|
import React from 'react';
|
|
|
|
import {useShopStore} from "./shop_store";
|
|
|
|
import {ProductItem} from "./ProductItem";
|
|
|
|
|
|
|
|
|
2024-03-15 15:22:05 +08:00
|
|
|
export function CatalogSearchResult() {
|
2024-02-22 17:26:07 +08:00
|
|
|
const cards_to_display = useShopStore((state) => state.listed_cards);
|
|
|
|
return ( <>
|
|
|
|
{cards_to_display.map((item, _) => {
|
|
|
|
return (
|
|
|
|
<ProductItem card_index={item} key={"searched_" + item} />
|
|
|
|
)
|
|
|
|
})}
|
|
|
|
</>
|
|
|
|
)
|
|
|
|
}
|