@deepkit/desktop-ui
Version:
Library for desktop UI widgets in Angular 10+
41 lines (37 loc) • 1.14 kB
text/typescript
/*
* Deepkit Framework
* Copyright (C) 2021 Deepkit UG, Marc J. Schmidt
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the MIT License.
*
* You should have received a copy of the MIT License along with this program.
*/
import { Component, Input } from '@angular/core';
import { Emoji, emojis } from './emojis';
export class EmojiComponent {
name!: string;
size: number = 16;
get emoji(): Emoji | undefined {
if (this.name) {
if (this.name[0] === ':') return emojis[this.name.substring(1, this.name.length - 1)];
return emojis[this.name]
}
}
}