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

34 lines
972 B
TypeScript
Raw Normal View History

2026-02-19 01:23:25 +04:00
import { Component, ChangeDetectionStrategy } from '@angular/core';
2026-02-26 23:09:20 +04:00
import { TranslatePipe } from '../../i18n/translate.pipe';
2026-07-02 02:22:00 +04:00
import { LogoComponent } from '../logo/logo.component';
import { UiRuntimeFacade } from '../../facades/runtime/ui-runtime.facade';
2026-01-18 18:57:06 +04:00
@Component({
selector: 'app-footer',
2026-07-05 00:51:29 +04:00
imports: [TranslatePipe, LogoComponent],
2026-01-18 18:57:06 +04:00
templateUrl: './footer.component.html',
2026-02-19 01:23:25 +04:00
styleUrls: ['./footer.component.scss'],
changeDetection: ChangeDetectionStrategy.OnPush
2026-01-18 18:57:06 +04:00
})
export class FooterComponent {
constructor(private readonly uiRuntime: UiRuntimeFacade) {}
2026-01-18 18:57:06 +04:00
currentYear = new Date().getFullYear();
get brandName(): string {
2026-07-05 00:38:21 +04:00
return this.uiRuntime.marketplaceName();
}
get contactEmail(): string {
return this.uiRuntime.contactEmail();
}
2026-07-05 00:38:21 +04:00
get isMarketplaceNovo(): boolean {
return this.uiRuntime.isMarketplaceVariant('novo');
}
2026-07-05 00:38:21 +04:00
get isMarketplaceLavero(): boolean {
return this.uiRuntime.isMarketplaceVariant('lavero');
}
2026-01-18 18:57:06 +04:00
}