Skip to main content

apps/web/components/portal-invite-panel.tsx

Metadata

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;
};