/** * POTAPanel Component * Displays Parks on the Air activations with ON/OFF toggle */ import React from 'react'; export const POTAPanel = ({ data, loading, showOnMap, onToggleMap }) => { return (
▲ POTA ACTIVATORS {data?.length > 0 ? `(${data.length})` : ''}
{loading ? (
) : data && data.length > 0 ? (
{data.map((spot, i) => (
{spot.call} {spot.locationDesc || spot.ref} {spot.freq} {spot.time}
))}
) : (
No POTA spots
)}
); }; export default POTAPanel;