forked from M-Labs/web2019
16 lines
447 B
React
16 lines
447 B
React
|
import React from 'react';
|
||
|
import {useShopStore} from "./shop_store";
|
||
|
import {ProductItem} from "./ProductItem";
|
||
|
|
||
|
|
||
|
export function BacklogSearchResult() {
|
||
|
const cards_to_display = useShopStore((state) => state.listed_cards);
|
||
|
return ( <>
|
||
|
{cards_to_display.map((item, _) => {
|
||
|
return (
|
||
|
<ProductItem card_index={item} key={"searched_" + item} />
|
||
|
)
|
||
|
})}
|
||
|
</>
|
||
|
)
|
||
|
}
|