Files
marketplaces/src/app/components/footer/footer.component.ts

36 lines
1.0 KiB
TypeScript

import { Component, ChangeDetectionStrategy } from '@angular/core';
import { RouterLink } from '@angular/router';
import { LangRoutePipe } from '../../pipes/lang-route.pipe';
import { TranslatePipe } from '../../i18n/translate.pipe';
import { LogoComponent } from '../logo/logo.component';
import { UiRuntimeFacade } from '../../facades/runtime/ui-runtime.facade';
@Component({
selector: 'app-footer',
imports: [RouterLink, LangRoutePipe, TranslatePipe, LogoComponent],
templateUrl: './footer.component.html',
styleUrls: ['./footer.component.scss'],
changeDetection: ChangeDetectionStrategy.OnPush
})
export class FooterComponent {
constructor(private readonly uiRuntime: UiRuntimeFacade) {}
currentYear = new Date().getFullYear();
get brandName(): string {
return this.uiRuntime.brandName();
}
get contactEmail(): string {
return this.uiRuntime.contactEmail();
}
get isnovo(): boolean {
return this.uiRuntime.isNovo();
}
get islavero(): boolean {
return this.uiRuntime.isLavero();
}
}