const meetingName = t => t == MeetingType.EBoard ? 'Executive Board' : 'Brotherhood' const brothersName = bs => { const none = (bs.length > 0 ? '*none' : '') return bs ? '* ' + bs.map(b => b.name).join('\n* ') : none } const present = bs => bs.filter(b => b.isPresent) const absent = bs => bs.filter(b => !b.isPresent && (isEBoard ? b.rank : true)) view RenderedMinutes { prop meetingType, date, brothers, noteContent const getMarkdown = () => ` ## Minutes of the ${meetingName(meetingType)} Meeting \ of the Alpha Kappa Chapter of the Alpha Epsilon Pi Fraternity ### ${moment(date).format(FMT.LongDate)} The following members were present at meeting: ${brothersName(present(brothers))} The following members were absent from meeting: ${brothersName(absent(brothers))} ${notesContent} `
{getMarkdown()}
$ = {
overflow: 'scroll',
height: '879px'
}
$pre = {
padding: 20,
paddingTop: 10,
paddingBottom: 0,
width: '100%',
whiteSpace: 'pre-wrap',
overflow: 'scroll',
}
}