index.js 290 Bytes
Newer Older
1 2 3 4 5
import React from 'react';

import styles from './index.less';

const Field = ({ label, value, ...rest }) => (
afc163's avatar
afc163 committed
6
  <div className={styles.field} {...rest}>
afc163's avatar
afc163 committed
7 8
    <span className={styles.label}>{label}</span>
    <span className={styles.number}>{value}</span>
afc163's avatar
afc163 committed
9
  </div>
10 11 12
);

export default Field;