<?php

namespace App;

use Mtc\MercuryDataModels\Country;

class LocalisationService
{
    public function phonePrefix(?string $countryCode): string
    {
        return !empty($countryCode)
            ? '+' . Country::query()->where('code', $countryCode)->first()?->dial_code
            : '';
    }
}
