<!-- Обёртка report/main: вызывает API отправки жалобы (executeAbuse) -->
<template>
  <ReportMain @submit="submit" />
</template>

<script setup lang="ts">
import type { IReportRequest } from '../../types';
import { VideosApiService } from '../../services/api/videos.service';

const { execute: executeAbuse } = useApiAction(VideosApiService.sendVideoAbuse);

function submit(event: IReportRequest) {
  executeAbuse([event.form, event.guid]);
}
</script>
