TorbatYar/frontend/modules/communication/features/permissions.tsx
Mortezakoohjani 10c3c43a75 feat(communication): add SMS MVP frontend with governance artifacts.
Ship the full Communication portal (real SMS API, feature-locked future channels), BFF proxy, docs, snapshot, and phase handover.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-27 11:11:25 +03:30

27 lines
998 B
TypeScript
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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 { COMMUNICATION_PERMISSIONS } from "@/modules/communication/constants/permissions";
import { PageHeader, Card, CardContent, Badge } from "@/components/ds";
import { CommunicationBreadcrumbs } from "@/modules/communication/components/CommunicationBreadcrumbs";
export function PermissionsPage() {
return (
<div className="space-y-6">
<CommunicationBreadcrumbs current="مجوزها" />
<PageHeader title="درخت مجوزها" description="communication.* — read-only از definitions backend" />
<div className="grid gap-2 sm:grid-cols-2">
{COMMUNICATION_PERMISSIONS.map((p) => (
<Card key={p}>
<CardContent className="flex items-center justify-between p-3">
<code className="text-xs">{p}</code>
<Badge tone="info">تعریفشده</Badge>
</CardContent>
</Card>
))}
</div>
</div>
);
}
export default PermissionsPage;