{"size": 266, "ext": "js", "max_stars_repo_path": "src/components/CalculationAddtemButton/new.js", "max_stars_repo_name": "jiriKuba/react-ghpages-example-app", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/components/CalculationAddtemButton/new.js", "max_issues_repo_name": "jiriKuba/react-ghpages-example-app", "max_issues_repo_issues_event_min_datetime": "2020-09-04T13:48:07.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-26T05:48:23.000Z", "max_forks_repo_path": "src/components/CalculationAddtemButton/new.js", "max_forks_repo_name": "jiriKuba/react-ghpages-example-app", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 6, "max_forks_count": null, "avg_line_length": 17.7333333333, "max_line_length": 48, "alphanum_fraction": 0.6090225564}
import { generateGuid } from '../../utils/guid';

/**
 * Create new item for calculation
 */
export function newItem(intl, message) {
  return {
    id: generateGuid(),
    name: intl.formatMessage(message),
    price: 0,
    months: 0,
    editing: true
  };
}
    