import { Component } from '@angular/core'; import { Location } from '@angular/common'; import { environment } from '../../../environments/environment'; @Component({ selector: 'app-back-button', template: ` @if (!isnovo) { } `, styles: [` .dexar-back-btn { position: fixed; top: 76px; left: 20px; z-index: 100; background: none; border: none; cursor: pointer; padding: 4px; transition: transform 0.2s ease; svg path { transition: fill 0.2s ease, fill-opacity 0.2s ease; } &:hover { transform: scale(1.08); svg path { fill: #A1B4B5; fill-opacity: 1; } } &:active { transform: scale(0.95); } } @media (max-width: 768px) { .dexar-back-btn { top: 68px; left: 12px; svg { width: 30px; height: 20px; } } } `] }) export class BackButtonComponent { isnovo = environment.theme === 'novo'; constructor(private location: Location) {} goBack(): void { this.location.back(); } }