Files
hamview/ui/src/components/protocol/StatusPill.tsx
2026-03-08 22:22:51 +01:00

20 lines
474 B
TypeScript

import React from 'react';
import { Badge } from 'react-bootstrap';
import '../../styles/ProtocolBriefing.scss';
export interface StatusPillProps {
label: string;
value: string;
tone: 'success' | 'warning' | 'danger' | 'secondary';
}
export const StatusPill: React.FC<StatusPillProps> = ({ label, value, tone }) => {
return (
<div className="protocol-briefing-signal-pill">
<span>{label}</span>
<Badge bg={tone}>{value}</Badge>
</div>
);
};