<?php

namespace App\Livewire\Admin;

use Illuminate\Support\Facades\Auth;
use Livewire\Component;
use App\Models\User;

class TopUserInfo extends Component
{
    protected $listeners =[
        'updateTopUserInfo'=>'$refresh'
    ];
    public function render()
    {
        return view('livewire.admin.top-user-info' ,[
            'user'=>User::findOrFail(Auth::id())
        ]);
    }
}
