import React from 'react'; import {useShopStore} from "./shop_store"; import {SummaryCrates} from "./SummaryCrates"; import {SummaryTotalPrice} from "./SummaryTotalPrice"; // #!render_count import {useRenderCount} from "@uidotdev/usehooks"; /** * Components that displays the list of card that are used in the crate. * It is a summary of purchase */ export function OrderSummary() { // #!render_count const renderCount = useRenderCount(); const clearAll = useShopStore((state) => state.clearAll); // #!render_count console.log("OrderSummary renders: ", renderCount) return (
Remove all cards
Price estimate  
); }