mixin bubble(user) - const slots = {} mixin slot(key) - slots[key] = block - block ? block() : undefined let classes = { 'o-bubble': true, 'o-bubble--compact': attributes.compact, 't-raised': !attributes.theme } if (attributes.class) { classes[attributes.class] = true } if (attributes.theme) { classes[attributes.theme] = true } let headerClasses = { 'o-bubble__header': true, 'u-mb-50': !attributes.compact, } mixin content if slots.header header(class=headerClasses) - slots.header() else if user header(class=headerClasses) strong= user div.o-bubble__body.s-colored-links - slots.body() if slots.time small.o-bubble__time - slots.time() if slots.footer footer.o-bubble__footer - slots.footer() article(class=classes) if user && attributes.avatar .l-card.l-card--flush.l-flex--align-start .l-card__block.u-mt-50.u-sticky-top +avatar= user.slice(0, 2) .l-card__block.l-card__block--main +content else +content