|
| 1 | +<script> |
| 2 | +const icon: string = 'inbox' |
| 3 | +const title: string = 'No data found' |
| 4 | +const message: string = '' |
| 5 | +</script> |
| 6 | + |
| 7 | +<div class="flex flex-col items-center justify-center py-16 px-6 text-center"> |
| 8 | + @if(icon === 'inbox') |
| 9 | + <svg class="w-12 h-12 text-zinc-700 mb-4" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"> |
| 10 | + <polyline points="22 12 16 12 14 15 10 15 8 12 2 12"/> |
| 11 | + <path d="M5.45 5.11L2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z"/> |
| 12 | + </svg> |
| 13 | + @elseif(icon === 'search') |
| 14 | + <svg class="w-12 h-12 text-zinc-700 mb-4" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"> |
| 15 | + <circle cx="11" cy="11" r="8"/><line x1="21" y1="21" x2="16.65" y2="16.65"/> |
| 16 | + </svg> |
| 17 | + @elseif(icon === 'layers') |
| 18 | + <svg class="w-12 h-12 text-zinc-700 mb-4" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"> |
| 19 | + <polygon points="12 2 2 7 12 12 22 7 12 2"/><polyline points="2 17 12 22 22 17"/><polyline points="2 12 12 17 22 12"/> |
| 20 | + </svg> |
| 21 | + @elseif(icon === 'users') |
| 22 | + <svg class="w-12 h-12 text-zinc-700 mb-4" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"> |
| 23 | + <path d="M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"/><circle cx="9" cy="7" r="4"/><path d="M23 21v-2a4 4 0 0 0-3-3.87"/><path d="M16 3.13a4 4 0 0 1 0 7.75"/> |
| 24 | + </svg> |
| 25 | + @elseif(icon === 'activity') |
| 26 | + <svg class="w-12 h-12 text-zinc-700 mb-4" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"> |
| 27 | + <polyline points="22 12 18 12 15 21 9 3 6 12 2 12"/> |
| 28 | + </svg> |
| 29 | + @elseif(icon === 'git-branch') |
| 30 | + <svg class="w-12 h-12 text-zinc-700 mb-4" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"> |
| 31 | + <line x1="6" y1="3" x2="6" y2="15"/><circle cx="18" cy="6" r="3"/><circle cx="6" cy="18" r="3"/><path d="M18 9a9 9 0 0 1-9 9"/> |
| 32 | + </svg> |
| 33 | + @else |
| 34 | + <svg class="w-12 h-12 text-zinc-700 mb-4" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"> |
| 35 | + <polyline points="22 12 16 12 14 15 10 15 8 12 2 12"/> |
| 36 | + <path d="M5.45 5.11L2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z"/> |
| 37 | + </svg> |
| 38 | + @endif |
| 39 | + |
| 40 | + <h3 class="text-sm font-medium text-zinc-400 mb-1">{{ title }}</h3> |
| 41 | + @if(message) |
| 42 | + <p class="text-xs text-zinc-600 max-w-[280px]">{{ message }}</p> |
| 43 | + @endif |
| 44 | +</div> |
0 commit comments