TorbatYar/frontend/components/HealthStatus.tsx
Mortezakoohjani 800b0ba2c5 Deploy TorbatYar for torbatyar.ir with nginx multi-tenant routing.
Wire production domain, CORS for tenant subdomains, celery volume mounts, and nginx reverse proxy configs for apex, API, identity, auth, and wildcard tenants.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-21 21:43:33 +03:30

22 lines
679 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

"use client";
import { useTheme } from "@/hooks/useTheme";
/** نمایش وضعیت سلامت backend از طریق API Client. */
export function HealthStatus() {
const { theme, loading } = useTheme();
if (loading) return <p className="text-sm text-gray-500">در حال بارگذاری تم...</p>;
return (
<div className="rounded-lg border border-gray-200 p-4">
<h2 className="text-lg font-semibold text-secondary">
{theme?.site_name ?? "SuperApp"}
</h2>
<p className="mt-1 text-sm text-gray-600">
Frontend جدا از Backend ارتباط فقط از طریق REST API
</p>
</div>
);
}