884054fb
“wangming”
项目初始化
|
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
39
|
import React from 'react';
import { Card, CardContent, CardHeader, CardTitle } from '../ui/card';
import { AlertTriangle, Bell } from 'lucide-react';
import { Button } from '../ui/button';
export function AlertsWidget() {
return (
<Card className="col-span-1 shadow-sm">
<CardHeader className="flex flex-row items-center justify-between pb-2">
<div className="flex items-center gap-2">
<AlertTriangle className="w-5 h-5 text-orange-500" />
<CardTitle className="text-base font-semibold">Alerts</CardTitle>
</div>
<Button variant="ghost" size="icon" className="h-8 w-8 bg-orange-50 text-orange-600 hover:bg-orange-100 rounded-lg">
<Bell className="w-4 h-4" />
</Button>
</CardHeader>
<CardContent>
<div className="text-xs text-muted-foreground mb-4">Recent notifications and warnings</div>
<div className="space-y-4">
<div className="flex gap-3">
<div className="w-2 h-2 mt-2 rounded-full bg-red-500 shrink-0" />
<div>
<div className="text-sm font-semibold text-gray-900">Critical temperature alert</div>
<div className="text-xs text-gray-500">Freezer #3 exceeded limit</div>
</div>
</div>
<div className="flex gap-3">
<div className="w-2 h-2 mt-2 rounded-full bg-orange-500 shrink-0" />
<div>
<div className="text-sm font-semibold text-gray-900">Stock level warning</div>
<div className="text-xs text-gray-500">Ingredient A low inventory</div>
</div>
</div>
</div>
</CardContent>
</Card>
);
}
|