import type { App, Plugin } from 'vue'

import Countdown from './Countdown'
import Statistic from './Statistic'

export type { StatisticProps } from './Statistic'

Statistic.Countdown = Countdown
/* istanbul ignore next */
Statistic.install = function (app: App) {
  app.component(Statistic.name, Statistic)
  app.component(Statistic.Countdown.name, Statistic.Countdown)
  return app
}

export const StatisticCountdown = Statistic.Countdown

export default Statistic as typeof Statistic &
  Plugin & {
    readonly Countdown: typeof Countdown
  }
