<?php

namespace App\Services\Auth;

use App\Enums\UserRole;
use App\Models\User;

class RoleRedirector
{
    public function pathFor(User $user): string
    {
        return match ($user->role) {
            UserRole::SuperAdmin->value => '/super-admin/dashboard',
            UserRole::Staff->value => '/dashboard',
            default => '/dashboard',
        };
    }
}
