<?php

declare(strict_types=1);

namespace App\Support\Tenants;

enum TenantInteractionLane: string
{
    case StandardActiveOperating = 'standard_active_operating';
    case OnboardingWorkflow = 'onboarding_workflow';
    case AdministrativeManagement = 'administrative_management';
    case CanonicalWorkspaceRecord = 'canonical_workspace_record';

    public static function fromPageCategory(TenantPageCategory $pageCategory): self
    {
        return match ($pageCategory) {
            TenantPageCategory::OnboardingWorkflow => self::OnboardingWorkflow,
            TenantPageCategory::TenantBound,
            TenantPageCategory::TenantScopedEvidence => self::AdministrativeManagement,
            TenantPageCategory::CanonicalWorkspaceRecordViewer => self::CanonicalWorkspaceRecord,
            TenantPageCategory::WorkspaceScoped,
            TenantPageCategory::WorkspaceChooserException => self::StandardActiveOperating,
        };
    }
}
