import { UIPictureEdit } from '../ui/pictures/ui-picture-edit';
import { DialogService } from 'aurelia-dialog';
import { inject } from 'aurelia-framework';

@inject(DialogService)
export class BoxPicture {
    constructor(private dialogService: DialogService) {
    }

    public showEditPicture(url: string, type?: "url" | "base64") {
        return this.dialogService.open({ viewModel: UIPictureEdit, model: { url: url, type: type }, lock: true });
    }
}
