Skip to content

Commit 0744028

Browse files
Merge pull request #33 from soundsng/feat/add-health-badge
feat: add HealthBadge component stub
2 parents 3104d2d + 6cd0385 commit 0744028

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
export type HealthStatus = 'healthy' | 'degraded' | 'down';
2+
3+
interface HealthBadgeProps {
4+
status: HealthStatus;
5+
}
6+
7+
export default function HealthBadge({ status }: HealthBadgeProps) {
8+
return <span data-testid="health-badge" data-status={status}>{status}</span>;
9+
}

0 commit comments

Comments
 (0)