profileIcon.component.ts 529 B

123456789101112131415161718
  1. /* eslint-disable @typescript-eslint/explicit-module-boundary-types */
  2. import { Component, Input } from '@angular/core'
  3. import { BaseComponent } from './base.component'
  4. /** @hidden */
  5. @Component({
  6. selector: 'profile-icon',
  7. templateUrl:'./profileIcon.component.pug',
  8. styleUrls: ['./profileIcon.component.scss'],
  9. })
  10. export class ProfileIconComponent extends BaseComponent {
  11. @Input() icon?: string
  12. @Input() color?: string
  13. get isHTML (): boolean {
  14. return this.icon?.startsWith('<') ?? false
  15. }
  16. }