import { generateId } from '@/utils/id'

const showMainEvent = ref(false)

const mainEventData = ref({
  name: '',
  start: '',
  end: '',
  type: 'mainEvent',
  avatar: '',
})

const showNewEvent = ref(false)

const eventData = ref({
  name: '',
  start: '',
  end: '',
  avatar: '',
  type: 'subEvent',
})

export const useEvent = () => {
  return {
    showMainEvent,
    mainEventData,
    showNewEvent,
    eventData,
  }
}
