2021-02-22 02:39:04 +00:00
|
|
|
import { Component } from "inferno";
|
|
|
|
import { i18n } from "../i18next";
|
|
|
|
import { Icon } from "./icon";
|
2020-09-06 16:15:25 +00:00
|
|
|
|
|
|
|
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()}
|
|
|
|
>
|
2021-02-11 20:35:27 +00:00
|
|
|
<Icon icon="cake" classes="icon-inline" />
|
2020-09-06 16:15:25 +00:00
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
cakeDayTippy(): string {
|
2021-02-22 02:39:04 +00:00
|
|
|
return i18n.t("cake_day_info", { creator_name: this.props.creatorName });
|
2020-09-06 16:15:25 +00:00
|
|
|
}
|
|
|
|
}
|