File size: 613 Bytes
443c22e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
import React from 'react';

interface StatusRowProps {
  label: string;
  value: string | number;
  className?: string;
}

export const StatusRow: React.FC<StatusRowProps> = ({ label, value, className = '' }) => (
  <div className="srow">

    <span>{label}</span>

    <span className={`sv ${className}`}>{value}</span>

  </div>
);

interface StatusCardProps {
  title: string;
  children: React.ReactNode;
}

export const StatusCard: React.FC<StatusCardProps> = ({ title, children }) => (
  <div className="card">

    <div className="card-title">{title}</div>

    {children}

  </div>
);