apps/web/components/portal-invite-panel.tsx
Metadata
- Purpose: Reusable frontend UI component used by web routes.
- Domain:
applications - Language:
tsx - Bytes: 5448
- Lines: 125
- Content hash (short):
2d65bcf1 - Source (start): apps/web/components/portal-invite-panel.tsx:1
- Source (end): apps/web/components/portal-invite-panel.tsx:125
Indexed Symbols
PortalInvitePanel(line 27, function) - Implements portal invite panel for module behavior.
Markdown Headings (if applicable)
No markdown headings detected.
Source Preview
import { Card, StatusPill } from "@anchor/ui";
import { createPortalInviteAction, revokePortalInviteAction } from "../app/actions/operator-actions";
type PortalInviteRecord = {
id: string;
email: string;
clientId: string | null;
status: string;
expiresAt: string;
createdAt: string;
revokedAt: string | null;
};
type PortalInvitePanelProps = {
workspaceId: string;
clients: Array<{ id: string; name: string }>;
invites: PortalInviteRecord[];
inviteResult?: {
id?: string;
email?: string;
expiresAt?: string;
url?: string;
};
inviteError?: string;
};