"use client";
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import { InvitationManager } from "../invitation/InvitationManager";
import { useResourceAvailable, ApiResourceKind } from "../deployment-mode";
import { CloudFeatureNotice } from "../internal/CloudFeatureNotice";
import { useActiveOrgSlug } from "../organization/OrgProvider";
/** Settings section for creating and managing organization invitations. */
export function InvitationsSection() {
    const org = useActiveOrgSlug();
    const invitationsAvailable = useResourceAvailable(ApiResourceKind.invitation);
    return (_jsxs("section", { "aria-labelledby": "invitations-heading", children: [_jsx("div", { className: "mb-3", children: _jsx("h2", { id: "invitations-heading", className: "text-foreground text-sm font-semibold", children: "Invitations" }) }), _jsx("p", { className: "text-muted-foreground mb-4 text-xs", children: "Shareable invite links that grant organization membership with a configurable role. Create single-use links for specific people or multi-use links for public sharing." }), !invitationsAvailable ? (_jsx(CloudFeatureNotice, { children: "Invitations are not available in local mode." })) : !org ? (_jsx("p", { className: "text-muted-foreground py-4 text-center text-xs", children: "Select an organization to manage invitations." })) : (_jsx(InvitationManager, { org: org }))] }));
}
//# sourceMappingURL=InvitationsSection.js.map