import {Component} from "@angular/core";
import {properties} from "../../environments/environment";
import {ConnectHelper} from "../openaireLibrary/connect/connectHelper";
import {SearchCustomFilter} from "../openaireLibrary/searchPages/searchUtils/searchUtils.class";

@Component({
  selector: 'community-sdg',
  template: `
    <sdg [customFilter]="customFilter"></sdg>
  `
})
export class CommunitySdgComponent {
  communityId;
  customFilter: SearchCustomFilter = null;

  constructor() {
  }

  ngOnInit() {
    this.communityId = ConnectHelper.getCommunityFromDomain(properties.domain);
    this.customFilter = new SearchCustomFilter("Community", "communityId", this.communityId, "");
  }
}
