<script setup lang="ts">
import type { ScheduleTask } from '@geo/shared-types'

import GenerateTaskDrawer from '@/components/GenerateTaskDrawer.vue'

defineProps<{
  open: boolean
  task?: ScheduleTask | null
}>()

const emit = defineEmits<{
  'update:open': [value: boolean]
}>()
</script>

<template>
  <GenerateTaskDrawer
    :open="open"
    mode="schedule"
    :task="task"
    @update:open="emit('update:open', $event)"
  />
</template>
