import {Component, input} from '@angular/core'; import {CreateAuthor} from "../../components/create-author/create-author"; import {Modal} from "../../components/modal/modal"; import {AuthorInfo} from "../../interfaces/author.interfaces"; import {AuthorCard} from "../../components/author-card/author-card"; @Component({ selector: 'app-author', imports: [ CreateAuthor, Modal, AuthorCard ], templateUrl: './author.html', styleUrl: './author.css', }) export class Author { authorInfo = input.required(); authors: AuthorInfo[] = [ { name: 'Victor', firstName: 'Hugo' }, { name: 'J.K.', firstName: 'Rowling' }, { name: 'J.R.R.', firstName: 'Tolkien' }, { name: 'Frank', firstName: 'Herbert' }, { name: 'Ray', firstName: 'Bradbury' }, { name: 'George ', firstName: 'Orwell' } ]; }