"use client";

import { createHospitalityListPage } from "@/modules/hospitality/components/HospitalityListCrudPage";
import { hospitalityApi } from "@/modules/hospitality/services/hospitality-api";

export const PickupOrdersPage = createHospitalityListPage({
  title: "سفارش بیرون‌بر",
  breadcrumb: "سفارش بیرون‌بر",
  resourceKey: "qrOrderingSessions",
  bundleFeature: "qr_ordering",
  permission: "hospitality.view",
  api: hospitalityApi.qrOrderingSessions,
  columns: [
    { key: "code", header: "کد" },
    { key: "name", header: "نام" },
    { key: "status", header: "وضعیت", type: "status" },
    { key: "created_at", header: "ایجاد", type: "datetime" },
  ],
  createFields: [
    { name: "code", label: "کد", required: true },
    { name: "name", label: "نام", required: true },
  ],
});

export default PickupOrdersPage;
