import { ModuleScaffold } from "@/components/admin/module-scaffold";
import { AdminPermissionGate } from "@/components/admin/admin-permission-gate";
import { CurrencyManagementScreen } from "@/modules/settings/currency-management-screen";
import { buildPageMetadata } from "@/lib/page-metadata";
import { PRD_CURRENCY_MANAGE } from "@/lib/admin-prd";
import type { Metadata } from "next";

export const metadata: Metadata = buildPageMetadata("config", "currencies.title");

export default function AdminCurrenciesPage() {
  return (
    <ModuleScaffold>
      <AdminPermissionGate requiredAny={[PRD_CURRENCY_MANAGE]}>
        <CurrencyManagementScreen />
      </AdminPermissionGate>
    </ModuleScaffold>
  );
}
