import { createPinia } from "pinia";
import { createApp } from "vue";
import App from "./App.vue";
import "./registerServiceWorker";
import router from "./router";
import axios from "axios";
import VueAxios from "vue-axios";
import Notifications from "notiwind";

import "./assets/styles/tailwind.css";

import { library } from "@fortawesome/fontawesome-svg-core";
import {
  faArrowLeft,
  faArrowRight,
  faArrowUpRightFromSquare,
  faBan,
  faBitcoinSign,
  faBurst,
  faCalendar,
  faCamera,
  faCheck,
  faChevronLeft,
  faChevronRight,
  faCircle,
  faCircleCheck,
  faCircleInfo,
  faCircleQuestion,
  faCircleUser,
  faClock,
  faCoins,
  faComment,
  faCopy,
  faDollar,
  faEllipsisVertical,
  faEye,
  faEyeSlash,
  faFileLines,
  faFloppyDisk,
  faFolderOpen,
  faForward,
  faGift,
  faGlobe,
  faHammer,
  faHand,
  faHandHoldingHeart,
  faHouseChimney,
  faLocationDot,
  faLongArrowAltLeft,
  faLongArrowAltRight,
  faMagnifyingGlass,
  faMessage,
  faMinus,
  faPen,
  faPersonCircleCheck,
  faPersonCircleQuestion,
  faPlus,
  faQuestion,
  faQrcode,
  faRotate,
  faShareNodes,
  faSpinner,
  faSquareCaretDown,
  faSquareCaretUp,
  faSquarePlus,
  faTrashCan,
  faTriangleExclamation,
  faUser,
  faUsers,
  faXmark,
} from "@fortawesome/free-solid-svg-icons";

library.add(
  faArrowLeft,
  faArrowRight,
  faArrowUpRightFromSquare,
  faBan,
  faBitcoinSign,
  faBurst,
  faCalendar,
  faCamera,
  faCheck,
  faChevronLeft,
  faChevronRight,
  faCircle,
  faCircleCheck,
  faCircleInfo,
  faCircleQuestion,
  faCircleUser,
  faClock,
  faCoins,
  faComment,
  faCopy,
  faDollar,
  faEllipsisVertical,
  faEye,
  faEyeSlash,
  faFileLines,
  faFloppyDisk,
  faFolderOpen,
  faForward,
  faGift,
  faGlobe,
  faHammer,
  faHand,
  faHandHoldingHeart,
  faHouseChimney,
  faLocationDot,
  faLongArrowAltLeft,
  faLongArrowAltRight,
  faMagnifyingGlass,
  faMessage,
  faMinus,
  faPen,
  faPersonCircleCheck,
  faPersonCircleQuestion,
  faPlus,
  faQrcode,
  faQuestion,
  faRotate,
  faShareNodes,
  faSpinner,
  faSquareCaretDown,
  faSquareCaretUp,
  faSquarePlus,
  faTrashCan,
  faTriangleExclamation,
  faUser,
  faUsers,
  faXmark,
);

import { FontAwesomeIcon } from "@fortawesome/vue-fontawesome";
import Camera from "simple-vue-camera";

createApp(App)
  .component("fa", FontAwesomeIcon)
  .component("camera", Camera)
  .use(createPinia())
  .use(VueAxios, axios)
  .use(router)
  .use(Notifications)
  .mount("#app");
