import Alert from 'bootstrap/js/src/alert'
import Button from 'bootstrap/js/src/button'
import Carousel from 'bootstrap/js/src/carousel'
import Collapse from 'bootstrap/js/src/collapse'
import Dropdown from 'bootstrap/js/src/dropdown'
import Modal from 'bootstrap/js/src/modal'
import Popover from 'bootstrap/js/src/popover'
import ScrollSpy from 'bootstrap/js/src/scrollspy'
import Tab from 'bootstrap/js/src/tab'
import Toast from 'bootstrap/js/src/toast'
// import Tooltip from './src/tooltip'
import Hamburger from './hamburger'
import MobileToggles from './mobile-toggles'
import loadSprite from './polyfills/svg-sprite'

const svgPath = process.env.SVG_PATH || '../media'
const cacheBuster = process.env.npm_package_version || Date.now()
loadSprite(`${svgPath}/icons.svg?v=${cacheBuster}`)

export default {
  MobileToggles,
  Alert,
  Button,
  Carousel,
  Collapse,
  Dropdown,
  Modal,
  Popover,
  ScrollSpy,
  Tab,
  Toast,
  // Tooltip
  Hamburger
}
