import {range} from "./utils"; import React from "react"; import {useShopStore} from "./shop_store"; import {SummaryCrateHeader} from "./SummaryCrateHeader"; import {SummaryCrateCard} from "./SummaryCrateCard"; // #!render_count import {useRenderCount} from "@uidotdev/usehooks"; import {SummaryCrateFanTray} from "./SummaryCrateFanTray"; export function SummaryCrate({crate_index}) { // #!render_count const renderCount = useRenderCount(); const crate_id = useShopStore((state) => state.crates[crate_index].id); const crate_len = useShopStore((state) => state.crates[crate_index].items.length); // #!render_count console.log("SummaryCrate renders: ", renderCount) return (