{"size": 300, "ext": "js", "max_stars_repo_path": "src/components/Charts/Field/index.js", "max_stars_repo_name": "niqingyang/antd-pro-mobx", "max_stars_repo_stars_event_min_datetime": "2020-07-01T05:36:55.000Z", "max_stars_repo_stars_event_max_datetime": "2020-07-01T05:36:55.000Z", "max_issues_repo_path": "src/components/Charts/Field/index.js", "max_issues_repo_name": "niqingyang/antd-pro-mobx", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/components/Charts/Field/index.js", "max_forks_repo_name": "niqingyang/antd-pro-mobx", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 23.0769230769, "max_line_length": 54, "alphanum_fraction": 0.6133333333}
import React from 'react';

import styles from './index.less';

const Field = ({label, value, ...rest}) => (
    <div className={styles.field} {...rest}>
        <span className={styles.label}>{label}</span>
        <span className={styles.number}>{value}</span>
    </div>
);

export default Field;
