Update frequencies to communications, fixed control icons

This commit is contained in:
2025-05-14 08:28:43 -04:00
parent 019fb77373
commit 1e3c75624a
18 changed files with 20457 additions and 20413 deletions

View File

@@ -0,0 +1,27 @@
import { Table } from '@mantine/core';
import { Communication } from '@lib/airport.types.ts';
export function CommunicationTable({ communications }: { communications: Communication[] }) {
const rows = communications.map((communication) => (
<Table.Tr key={communication.id}>
<Table.Td>{communication.id}</Table.Td>
<Table.Td>{communication.name}</Table.Td>
<Table.Td>{communication.frequencies_mhz}</Table.Td>
<Table.Td>{communication.phone}</Table.Td>
</Table.Tr>
));
return (
<Table>
<Table.Thead>
<Table.Tr>
<Table.Th>ID</Table.Th>
<Table.Th>Name</Table.Th>
<Table.Th>Frequencies (MHz)</Table.Th>
<Table.Th>Phone</Table.Th>
</Table.Tr>
</Table.Thead>
<Table.Tbody>{rows}</Table.Tbody>
</Table>
);
}