1
0
Fork 0
web2019/static/js/shop/CrateWarnings.jsx

13 lines
425 B
React
Raw Normal View History

import React from "react";
export function CrateWarnings() {
return (
<div className="crate-info">
{rules.map((rule, index) => (
<p key={index} className="rule" style={{'color': rule.color ? rule.color : 'inherit'}}>
<img src={`/images${rule.icon}`} /> <i><strong>{rule.name}:</strong> {rule.message}</i>
</p>
))}
</div>
)
}