quoted-status.ts 516 B

12345678910111213141516171819202122232425
  1. import { Component, Input } from "@angular/core";
  2. /**
  3. * Generated class for the QuotedStatusComponent component.
  4. *
  5. * See https://angular.io/api/core/Component for more info on Angular
  6. * Components.
  7. */
  8. @Component({
  9. selector: "quoted-status",
  10. templateUrl: "quoted-status.html"
  11. })
  12. export class QuotedStatusComponent {
  13. @Input()
  14. data: any[];
  15. constructor() {}
  16. get hasPhoto() {
  17. return (
  18. this.data["entities"]["media"] &&
  19. this.data["entities"]["media"][0]["type"] == "photo"
  20. );
  21. }
  22. }