@props([ 'from' => 0, 'to' => 0, 'total' => 0, 'currentPage' => 1, 'lastPage' => 1, /** Comma-separated Livewire actions that should show the loading state */ 'wireTarget' => null, 'firstAction' => null, 'previousAction' => null, 'nextAction' => null, 'lastAction' => null, ]) @php $onFirstPage = (int) $currentPage <= 1; $onLastPage = (int) $currentPage >= (int) $lastPage; $buttonClass = 'flex size-7 items-center justify-center rounded-md border border-neutral-200 text-neutral-500 transition-colors hover:bg-neutral-100 hover:text-black disabled:pointer-events-none disabled:opacity-35 dark:border-white/[0.08] dark:text-fg-dim dark:hover:bg-white/[0.06] dark:hover:text-fg'; $hasLoading = filled($wireTarget); @endphp