'use strict';

Object.defineProperty(exports, "__esModule", {
  value: true
});
const mapper = event => ({
  id: event.pid,
  title: event.name,
  allDay: event.allday,
  start: event.startDate,
  end: event.endDate,
  className: [`plugin-calendar-cal-event-category-${event.cid}`, `plugin-calendar-cal-event-response-${event.responses[app.user.uid] || 'no'}`, event.topicDeleted ? 'plugin-calendar-cal-event-topic-deleted' : ''],
  original: event
});

const convertToFC = events => events.map(mapper);

exports.default = convertToFC;
//# sourceMappingURL=convertToFC.js.map