import { buildProps } from '@kankan/utils'
import type { ExtractPropTypes } from 'vue'
import type MenuItem from './menu-item.vue'

export const menuItemProps = buildProps({
    icon: {
        type: String,
        require: true,
    },
    text: {
        type: String,
        require: true,
    },
    active: {
        type: Boolean,
        default: false,
    },
})

export type MenuItemProps = ExtractPropTypes<typeof menuItemProps>

export type MenuItemInstance = InstanceType<typeof MenuItem>
