TorbatYar/frontend/components/ui/SectionTitle.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

20 lines
549 B
TypeScript

import type { ReactNode } from "react";
export interface SectionTitleProps {
title: string;
subtitle?: string;
action?: ReactNode;
}
export function SectionTitle({ title, subtitle, action }: SectionTitleProps) {
return (
<div className="mb-6 flex flex-wrap items-end justify-between gap-3">
<div>
<h2 className="text-xl font-bold text-secondary sm:text-2xl">{title}</h2>
{subtitle ? <p className="mt-1 text-sm text-gray-500">{subtitle}</p> : null}
</div>
{action}
</div>
);
}