import React from "react"; import {LevelUI} from "./warnings"; import {useShopStore} from "./shop_store"; export function CrateWarnings({crate_index}) { const crate = useShopStore(state => (state.crates[crate_index])) const crate_warnings = crate.warnings; // TODO UI/colors return (
{crate_warnings.map((rule, index) => (

{rule.message}

))}
) }