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