@page "/user/serviceprovider/{id}"
@using TIAMSharedUI.Shared
@using TIAMWebApp.Shared.Application.Models;
@using TIAMWebApp.Shared.Application.Interfaces;
@layout AdminLayout
@inject NavigationManager navigationManager

<div class="text-center m-5">
    <h1>Service provider: @Id</h1>
    <h2 style="font-size:small">Manage your service provider details</h2>
</div>

<div class="container">
    <ProfileComponent></ProfileComponent>
    <PermissionsComponent></PermissionsComponent>
</div>

@code {
    [Parameter]
    public string Id { get; set; }

    protected override void OnInitialized()
    {
        base.OnInitialized();
        if (string.IsNullOrEmpty(Id))
            navigationManager.NavigateTo("/user/properties");
    }
}
