import { Component , Input , Output , EventEmitter } from '@angular/core' ; import { faFacebookSquare } from '@fortawesome/free-brands-svg-icons' ; @ Component ( { selector : 'drp-social-media-button' , templateUrl : './social-media-button.component.html' , styleUrls : [ './social-media-button.component.scss' ] , } ) export class SocialMediaButtonComponent { @ Input ( ) faIcon = faFacebookSquare ; @ Input ( ) ariaLabel = '' ; @ Output ( ) clicked = new EventEmitter < string > ( ) ; onClicked ( ) { this . clicked . emit ( this . faIcon . iconName ) ; } }