Checkpoint
This commit is contained in:
19
ui/src/components/protocol/StatusPill.tsx
Normal file
19
ui/src/components/protocol/StatusPill.tsx
Normal file
@@ -0,0 +1,19 @@
|
||||
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>
|
||||
);
|
||||
};
|
||||
Reference in New Issue
Block a user