"use client";

import { createSportsCenterListPage } from "@/modules/sports-center/components/SportsCenterListCrudPage";
import { sportsCenterApi } from "@/modules/sports-center/services/sports-center-api";

export const CompetitionResultsPage = createSportsCenterListPage({
  title: "نتایج",
  breadcrumb: "نتایج",
  resourceKey: "competitionResults",
  api: sportsCenterApi.competitionResults,
  feature: "competition_management",
  createOnly: true,
  columns: [
    {
      "key": "competition_id",
      "header": "مسابقه"
    }
  ],
  createFields: [
    {
      "name": "sports_center_id",
      "label": "شناسه مرکز",
      "required": true
    },
    {
      "name": "competition_id",
      "label": "مسابقه",
      "required": true
    }
  ],
});

export default CompetitionResultsPage;
