]> Untitled Git - lemmy-ui.git/blob - src/shared/components/cake-day.tsx
Partly functioning fuse-box, but moving te webpack now.
[lemmy-ui.git] / src / shared / components / cake-day.tsx
1 import { Component } from 'inferno';
2 import { i18n } from '../i18next';
3
4 interface CakeDayProps {
5   creatorName: string;
6 }
7
8 export class CakeDay extends Component<CakeDayProps, any> {
9   render() {
10     return (
11       <div
12         className={`mx-2 d-inline-block unselectable pointer`}
13         data-tippy-content={this.cakeDayTippy()}
14       >
15         <svg class="icon icon-inline">
16           <use xlinkHref="#icon-cake"></use>
17         </svg>
18       </div>
19     );
20   }
21
22   cakeDayTippy(): string {
23     return i18n.t('cake_day_info', { creator_name: this.props.creatorName });
24   }
25 }