TorbatYar/frontend/modules/hospitality/features/menuMediaRefs.tsx
Mortezakoohjani 065c053c16 Add complete Torbat Food hospitality frontend connected to backend APIs.
Introduces modules/hospitality with 54 routes, BFF proxy, capability-gated nav, CRUD factory, and architecture validation docs.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-26 20:54:26 +03:30

26 lines
871 B
TypeScript

"use client";
import { createHospitalityListPage } from "@/modules/hospitality/components/HospitalityListCrudPage";
import { hospitalityApi } from "@/modules/hospitality/services/hospitality-api";
export const MediaLibraryPage = createHospitalityListPage({
title: "کتابخانه رسانه",
breadcrumb: "کتابخانه رسانه",
resourceKey: "menuMediaRefs",
bundleFeature: "digital_menu",
permission: "hospitality.view",
api: hospitalityApi.menuMediaRefs,
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 MediaLibraryPage;