Initial commit: Fahrrad Verschleißteile Tracker
- Next.js SPA mit Bun Runtime - Prisma mit SQLite Datenbank - Vollständige CRUD-Operationen für Fahrräder, Verschleißteile und Wartungshistorie - Warnsystem für bevorstehende Wartungen - Statistik-Features (Gesamtkosten, durchschnittliche Lebensdauer) - Zod-Validierung für alle API-Requests - Umfassende Test-Suite (41 Tests)
This commit is contained in:
14
app/components/AlertBadge.tsx
Normal file
14
app/components/AlertBadge.tsx
Normal file
@@ -0,0 +1,14 @@
|
||||
interface AlertBadgeProps {
|
||||
count: number
|
||||
}
|
||||
|
||||
export default function AlertBadge({ count }: AlertBadgeProps) {
|
||||
if (count === 0) return null
|
||||
|
||||
return (
|
||||
<span className="inline-flex items-center px-3 py-1 rounded-full text-sm font-medium bg-orange-100 text-orange-800">
|
||||
⚠️ {count}
|
||||
</span>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user