<?php

declare(strict_types=1);

namespace App\Modules\Parties\Application\Services;

final class PartyNavigationService
{
    public function titleFor(?string $type = null): string
    {
        return match ($type) {
            'customer' => 'العملاء',
            'supplier' => 'الموردون',
            default => 'الأطراف',
        };
    }

    public function routeFor(?string $type = null): string
    {
        return match ($type) {
            'customer' => '/parties/customers',
            'supplier' => '/parties/suppliers',
            default => '/parties',
        };
    }
}
