import { buildProps, definePropType } from '@kankan-components/utils'
import type { ExtractPropTypes } from 'vue'
import type Slide from './slide.vue'

export const slideProps = buildProps({
  items: {
    type: definePropType<any[]>(Array),
    default: [],
  },
  currentIndex: {
    type: Number,
    default: 0,
  },
  showCtrl: {
    type: Boolean,
  },
})

export type SlideProps = ExtractPropTypes<typeof slideProps>

export type SlideInstance = InstanceType<typeof Slide>
