import { Component } from '@angular/core';
import { DecodedPref } from 'picsur-shared/dist/dto/preferences.dto';
import { Observable } from 'rxjs';
import { UsrPreferenceFriendlyNames } from 'src/app/i18n/usr-pref.i18n';
import { UsrPrefService } from 'src/app/services/api/usr-pref.service';

@Component({
  templateUrl: './settings-general.component.html',
})
export class SettingsGeneralComponent {
  public translator = UsrPreferenceFriendlyNames;

  preferences: Observable<DecodedPref[]>;

  constructor(public readonly usrPrefService: UsrPrefService) {
    this.preferences = usrPrefService.live;
  }
}
