MCPcopy
hub / github.com/StructuredLabs/preswald / AlertWidget

Function AlertWidget

frontend/src/components/widgets/AlertWidget.jsx:32–43  ·  view source on GitHub ↗
({ id, message, level = 'info', className })

Source from the content-addressed store, hash-verified

30};
31
32const AlertWidget = ({ id, message, level = 'info', className }) => {
33 const config = levelConfig[level] || levelConfig.info;
34 const Icon = config.icon;
35
36 return (
37 <Alert id={id} variant={config.variant} className={cn('alertwidget-container', className)}>
38 <Icon className="alertwidget-icon" />
39 <AlertTitle>{config.title}</AlertTitle>
40 <AlertDescription>{message}</AlertDescription>
41 </Alert>
42 );
43};
44
45export default AlertWidget;

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected