2025-12-22 12:19:00 +00:00
|
|
|
import SightingStack from "./components/sightingStack/SightingStack";
|
2025-12-19 16:04:06 +00:00
|
|
|
import VideoFeed from "./components/videoFeed/VideoFeed";
|
2025-12-22 12:19:00 +00:00
|
|
|
import { useSightingList } from "./hooks/useSightingList";
|
2025-12-19 16:04:06 +00:00
|
|
|
|
|
|
|
|
const Dashboard = () => {
|
2025-12-22 12:19:00 +00:00
|
|
|
const { sightingList, isLoading } = useSightingList();
|
|
|
|
|
const mostRecent = sightingList[0];
|
|
|
|
|
|
2025-12-19 16:04:06 +00:00
|
|
|
return (
|
2025-12-22 12:19:00 +00:00
|
|
|
<div className="grid gird-cols-1 md:grid-cols-2 gap-20">
|
|
|
|
|
<VideoFeed mostRecentSighting={mostRecent} isLoading={isLoading} />
|
|
|
|
|
<SightingStack sightings={sightingList} />
|
2025-12-19 16:04:06 +00:00
|
|
|
</div>
|
|
|
|
|
);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export default Dashboard;
|