style.js 257 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 12 13 module.exports = function(data) { var style = ''; switch (data) { case 'customer': style = 'send-msg'; break; case 'employee': case 'rebot': style = 'recevied-msg'; break; } return style; };