import React from 'react' ; import styles from './SocialTab.module.scss' ; interface SocialTabProps { link : string ; icon : string ; title : string ; } const SocialTab = ( { link , icon , title , } ) => { return ( < a className = { styles . Container } href = { link } target = "_blank" rel = "noopener noreferrer" > < img src = { require ( `./imgs/${ icon }.png` ) } className = { styles . img } / > < a > { title } < /a> < /a>); } ; export default SocialTab ;