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>
    )
}