<?php

declare(strict_types=1);

namespace App\Support\Ui\ActionSurface\Enums;

enum ActionSurfaceInspectAffordance: string
{
    case ClickableRow = 'clickable_row';
    case ViewAction = 'view_action';
    case PrimaryLinkColumn = 'primary_link_column';

    public function isExplicitInspect(): bool
    {
        return $this === self::ViewAction;
    }

    public function isPrimaryLinkColumn(): bool
    {
        return $this === self::PrimaryLinkColumn;
    }

    public function isSingleClickOpen(): bool
    {
        return $this === self::ClickableRow || $this === self::PrimaryLinkColumn;
    }
}
