Adds /api/health, ntfy notify on config save, /admin/analytics charts, and deploy smoke for miniprogram config/API. Co-authored-by: Cursor <cursoragent@cursor.com>
16 lines
387 B
TypeScript
16 lines
387 B
TypeScript
"use client";
|
|
|
|
import type { ReactNode } from "react";
|
|
import { ModuleGate } from "~/components/module-gate";
|
|
import type { NomadroRemoteConfig } from "~/lib/remote-config";
|
|
|
|
export function ModuleBoundary({
|
|
moduleKey,
|
|
children,
|
|
}: {
|
|
moduleKey: keyof NomadroRemoteConfig["modules"];
|
|
children: ReactNode;
|
|
}) {
|
|
return <ModuleGate moduleKey={moduleKey}>{children}</ModuleGate>;
|
|
}
|