import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core';
import { environment } from '../../../../../../environments/environment.dev';

interface PreviewData {
  id: number;
  title: string;
  description: string;
  skills: Array<{ id: number, name: string }>;
}


@Component({
  selector: 'app-project-save',
  templateUrl: './project-save.component.html',
  styleUrls: ['./project-save.component.scss']
})

export class ProjectSaveComponent implements OnInit {
  @Input() data: [PreviewData];
  @Input() showAddProjectButton?: boolean;
  @Output() navigation = new EventEmitter<{ page: string, data: any }>();
  imageUrl: string = environment.imageUrl;
  constructor() { }

  ngOnInit() {
  }

}
