<?php

namespace App\Enums;

enum ThemePreference: string
{
    case LIGHT = 'light';
    case DARK = 'dark';

    public function label(): string
    {
        return match($this) {
            self::LIGHT => 'Light',
            self::DARK => 'Dark',
        };
    }

    public function cssClass(): string
    {
        return match($this) {
            self::LIGHT => 'theme-light',
            self::DARK => 'theme-dark',
        };
    }
}