1 import { Component } from 'inferno';
2 import { i18n } from '../i18next';
4 interface CakeDayProps {
6 is_post_creator?: boolean;
9 export class CakeDay extends Component<CakeDayProps, any> {
11 const { creator_name, is_post_creator } = this.props;
15 className={`mr-lg-2 d-inline-block unselectable pointer${
16 is_post_creator ? ' mx-2' : ''
18 data-tippy-content={this.cakeDayTippy(creator_name)}
20 <svg class="icon icon-inline">
21 <use xlinkHref="#icon-cake"></use>
27 cakeDayTippy(creator_name: string): string {
28 return i18n.t('cake_day_info', { creator_name });