2025-12-22 12:19:00 +00:00
|
|
|
import CardHeader from "../../../../components/CardHeader";
|
|
|
|
|
import Card from "../../../../components/ui/Card";
|
|
|
|
|
import type { SightingType } from "../../../../utils/types";
|
|
|
|
|
import SightingItem from "./SightingItem";
|
|
|
|
|
|
|
|
|
|
type SightingStackProps = {
|
|
|
|
|
sightings: SightingType[];
|
|
|
|
|
};
|
|
|
|
|
const SightingStack = ({ sightings }: SightingStackProps) => {
|
|
|
|
|
return (
|
2025-12-22 16:10:34 +00:00
|
|
|
<Card className="p-4 w-full h-full ">
|
|
|
|
|
<CardHeader title="Live Sightings" />
|
|
|
|
|
<div className="md:h-[65%]">
|
|
|
|
|
{sightings.map((sighting) => (
|
|
|
|
|
<SightingItem key={sighting.ref} sighting={sighting} />
|
|
|
|
|
))}
|
|
|
|
|
</div>
|
2025-12-22 12:19:00 +00:00
|
|
|
</Card>
|
|
|
|
|
);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export default SightingStack;
|