mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-01 18:19:55 +00:00
25 lines
576 B
TypeScript
25 lines
576 B
TypeScript
import { Component } from 'inferno';
|
|
import { i18n } from '../i18next';
|
|
|
|
interface CakeDayProps {
|
|
creatorName: string;
|
|
}
|
|
|
|
export class CakeDay extends Component<CakeDayProps, any> {
|
|
render() {
|
|
return (
|
|
<div
|
|
className={`mx-2 d-inline-block unselectable pointer`}
|
|
data-tippy-content={this.cakeDayTippy()}
|
|
>
|
|
<svg class="icon icon-inline">
|
|
<use xlinkHref="#icon-cake"></use>
|
|
</svg>
|
|
</div>
|
|
);
|
|
}
|
|
|
|
cakeDayTippy(): string {
|
|
return i18n.t('cake_day_info', { creator_name: this.props.creatorName });
|
|
}
|
|
}
|