mirror of
https://github.com/LukeHagar/better-auth.git
synced 2025-12-11 04:19:31 +00:00
23 lines
610 B
TypeScript
23 lines
610 B
TypeScript
export { default as Calendar } from './Calendar.vue'
|
|
import type { CalendarSlotName } from 'v-calendar/dist/types/src/components/Calendar/CalendarSlot.vue.d.ts'
|
|
|
|
export function isVCalendarSlot(slotName: string): slotName is CalendarSlotName {
|
|
const validSlots: CalendarSlotName[] = [
|
|
'day-content',
|
|
'day-popover',
|
|
'dp-footer',
|
|
'footer',
|
|
'header-title-wrapper',
|
|
'header-title',
|
|
'header-prev-button',
|
|
'header-next-button',
|
|
'nav',
|
|
'nav-prev-button',
|
|
'nav-next-button',
|
|
'page',
|
|
'time-header',
|
|
]
|
|
|
|
return validSlots.includes(slotName as CalendarSlotName)
|
|
}
|