"use client";

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

export const SettingsPage = createSportsCenterListPage({
  title: "تنظیمات",
  breadcrumb: "تنظیمات",
  resourceKey: "settings",
  api: sportsCenterApi.settings,
  createOnly: true,
  columns: [
    {
      "key": "key",
      "header": "کلید"
    },
    {
      "key": "value",
      "header": "مقدار"
    }
  ],
  createFields: [
    {
      "name": "sports_center_id",
      "label": "شناسه مرکز",
      "required": true
    },
    {
      "name": "key",
      "label": "کلید",
      "required": true
    },
    {
      "name": "value",
      "label": "مقدار",
      "required": true
    }
  ],
});

export default SettingsPage;
