/** * Copyright since 2025 Mifos Initiative * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ import { Component, inject } from '@angular/core'; import { MAT_SNACK_BAR_DATA, MatSnackBarRef } from '@angular/material/snack-bar'; import { MatButton } from '@angular/material/button'; import { STANDALONE_SHARED_IMPORTS } from 'app/standalone-shared.module'; @Component({ selector: 'mifosx-shortcut-suggestion-snackbar', templateUrl: './shortcut-suggestion-snackbar.component.html', styleUrls: ['./shortcut-suggestion-snackbar.component.scss'], imports: [ ...STANDALONE_SHARED_IMPORTS, MatButton ] }) export class ShortcutSuggestionSnackbarComponent { snackBarRef = inject(MatSnackBarRef); data: { pageName: string; route: string } = inject(MAT_SNACK_BAR_DATA); createShortcut() { this.snackBarRef.dismissWithAction(); } dismiss() { this.snackBarRef.dismiss(); } }