<script setup lang="ts">
import SharedWorkReportSearch from '../../shared/components/search-panel.vue';

defineOptions({ name: 'ProjectReportSearch' });

defineProps<{
  projectOptions?: Api.WorkReport.Project.ProjectReportOwnerProjectOption[];
}>();

const model = defineModel<Api.WorkReport.Project.ProjectReportSearchParams>('model', { required: true });

const emit = defineEmits<{
  (e: 'reset'): void;
  (e: 'search'): void;
}>();
</script>

<template>
  <SharedWorkReportSearch
    v-model:model="model"
    report-type="project"
    :project-options="projectOptions"
    @reset="emit('reset')"
    @search="emit('search')"
  />
</template>
