import type { App, Plugin } from 'vue'

import Tabs, { TabPane } from './src'

export type { TabPaneProps, TabsProps } from './src'

Tabs.TabPane = TabPane

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

export default Tabs as typeof Tabs &
  Plugin & {
    readonly TabPane: typeof TabPane
  }

export { TabPane }
