@cfxlabsinc/b2b-services
    Preparing search index...
    SwitchWorkspace: React.FC<
        {
            alreadyActive: boolean;
            currentName: string
            | undefined;
            linkComponent?: LinkComponent;
            onSwitch: () => void;
            onSwitched?: () => void;
            selectWorkspace: () => Promise<boolean>;
            stayHref: string;
            targetName: string | undefined;
        },
    > = ...

    Makes the target the session's active workspace, then calls onSwitch. A failed switch stays here: onSwitch lands on a page of the target workspace, which would render under the workspace the session is still in.