import { useSession } from "next-auth/react"; import type { Dispatch } from "react"; import MemberChangeRoleModal from "@calcom/features/ee/teams/components/MemberChangeRoleModal"; import type { Action, State } from "./UserListTable"; export function ChangeUserRoleModal(props: { state: State; dispatch: Dispatch }) { const { data: session } = useSession(); const orgId = session?.user.org?.id; if (!orgId || !props.state.changeMemberRole.user) return null; return ( props.dispatch({ type: "CLOSE_MODAL", }) } /> ); }