
// Core imports
import { Component, OnInit } from '@angular/core'

// Material
import {MatDialogRef } from '@angular/material'

// Settings
import { AppHelper } from '@k-settings/app-helper'


/**
 * @name Added-to-cart-dialogComponent
 * @description *watdo?*
 * @author *whodis?*
 * @since *wendis?*
 * @extends
 */
@Component({
    moduleId: module.id+ '',
    selector: 'shared-added-to-cart-dialog',
    templateUrl: './template/t--added-to-cart-dialog.pug',
    styleUrls: ['sty.added-to-cart-dialog.scss']
})

export class AddedToCartDialogComponent {

    // ---- Variables ---- \\
    // Paths
    cartPath: string = '/' + AppHelper.basket


    constructor(
        private _dialogRef:MatDialogRef<AddedToCartDialogComponent>
    ) { }


    // ---- Lifecycle hooks ---- \\
    ngOnInit() {
        console.log('dialog opened')
    }


    // ---- Functions ---- \\
    
    close() {
        this._dialogRef.close()
    }

}
