Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
File size: 781 Bytes
61d29fc | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | import React from 'react';
/**
* InsightBox Component
* Bottom summary box with "The logic" explanation
*/
export default function InsightBox({ title = "The logic", children, type = "default" }) {
const styles = {
default: {
background: '#f5f5f2',
borderLeft: 'none'
},
warning: {
background: '#fff4e6',
borderLeft: '3px solid #BA7517'
},
critical: {
background: '#ffe6e6',
borderLeft: '3px solid #D85A30'
}
};
const style = styles[type] || styles.default;
return (
<div style={{
...style,
borderRadius: 8,
padding: 14,
fontSize: 13,
color: '#555',
marginTop: 16
}}>
<strong style={{ color: '#222' }}>{title}:</strong> {children}
</div>
);
}
|