// src/plugins/fontawesome.js
import { library } from '@fortawesome/fontawesome-svg-core';
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome';
import { faSearch, faShoppingCart, faUser, faAngleDown, faBars, faShoppingBasket, faHeart, faCog, faCircleUser, faTruckFast, faPhoneFlip, faBell, faMoon, faSun, faEnvelope, faTimes, faCircleXmark, faHome, faFilter, faSliders, faArrowRight, faBox, faShieldHalved, faLink, faMinus, faPlus, faQuestion } from '@fortawesome/free-solid-svg-icons';
import { faFacebook, faInstagram } from '@fortawesome/free-brands-svg-icons';

library.add(faSearch, faShoppingCart, faUser, faAngleDown, faBars, faShoppingBasket, faHeart, faCog, faCircleUser, faTruckFast, faPhoneFlip, faBell, faMoon, faSun, faEnvelope, faTimes, faCircleXmark, faHome, faFacebook, faFilter, faSliders, faInstagram, faArrowRight, faBox, faShieldHalved, faLink, faMinus, faPlus, faQuestion);

// Log the library to verify the icons are added
console.log(library);

export default {
  install(Vue) {
    Vue.component('font-awesome-icon', FontAwesomeIcon);
  }
};

