<?php

namespace App\Enums;

/** Generic active/inactive lifecycle for catalogue records. */
enum RecordStatus: string
{
    case Active = 'active';
    case Inactive = 'inactive';

    public function label(): string
    {
        return ucfirst($this->value);
    }

    public function color(): string
    {
        return $this === self::Active ? 'emerald' : 'slate';
    }
}
