import {Component} from '@angular/core';
import {CuteLoadingComponent} from "../../corelib/components/cute-loading/cute-loading.component";
import {DecimalPipe, NgForOf, NgIf} from "@angular/common";
import {UserService} from "../../corelib/service/user.service";

@Component({
  selector: 'app-contribute',
  standalone: true,
    imports: [
        CuteLoadingComponent,
        DecimalPipe,
        NgForOf,
        NgIf
    ],
  templateUrl: './contribute.component.html',
  styleUrl: './contribute.component.css'
})
export class ContributeComponent {

  constructor(public userService: UserService) { }

  hideLink(): void {
    this.userService.ephemeralUserInfo = { ...this.userService.ephemeralUserInfo, showContributions: false };
  }

}
