<.table id="packets" rows={@packets} class="min-w-full divide-y divide-gray-200">
<:col
:let={packet}
label="Sender"
class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider"
>
<.link
navigate={~p"/packets/#{packet.base_callsign}"}
class="text-blue-600 hover:text-blue-800 font-medium"
>
{packet.sender}
<:col
:let={packet}
label="SSID"
class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider"
>
{packet.ssid}
<:col
:let={packet}
label="Base Callsign"
class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider"
>
<.link
navigate={~p"/packets/#{packet.base_callsign}"}
class="text-blue-600 hover:text-blue-800 font-medium"
>
{packet.base_callsign}
<:col
:let={packet}
label="Data Type"
class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider"
>
{packet.data_type}
<:col
:let={packet}
label="Destination"
class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider"
>
{packet.destination}
<:col
:let={packet}
label="Information"
class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider"
>
{packet.information_field}
<:col
:let={packet}
label="Path"
class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider"
>
{packet.path}
<%= if length(@packets) == 0 do %>
No packets
Packets will appear here as they are received.
<% end %>