• Determines if a campaign is part of a group.

    Parameters

    • settings: SettingsModel

      The settings model containing group associations.

    • campaignId: any

      The ID of the campaign to check.

    Returns {
        groupId: number;
        groupName: any;
    } | {
        groupId?: undefined;
        groupName?: undefined;
    }

    An object containing the group ID and name if the campaign is part of a group, otherwise an empty object.