Files
Mav-Mobile-UI/src/pages/Dashboard.tsx

23 lines
935 B
TypeScript
Raw Normal View History

2025-08-13 14:23:48 +01:00
import FrontCameraOverviewCard from "../components/FrontCameraOverview/FrontCameraOverviewCard";
2025-08-20 08:27:05 +01:00
import SightingHistoryWidget from "../components/SightingsWidget/SightingWidget";
2025-08-29 10:07:59 +01:00
import { SightingFeedProvider } from "../context/providers/SightingFeedProvider";
import { CAM_BASE, OUTSIDE_CAM_BASE } from "../utils/config";
2025-08-13 14:23:48 +01:00
const Dashboard = () => {
const mode = import.meta.env.MODE;
const base_url = `${CAM_BASE}/SightingList/sightingSummary?mostRecentRef=`;
// const outside_url = `http://100.82.205.44/mergedHistory/sightingSummary?mostRecentRef=`;
console.log(mode);
console.log(OUTSIDE_CAM_BASE);
2025-08-13 14:23:48 +01:00
return (
<SightingFeedProvider url={base_url}>
<div className="mx-auto flex flex-col lg:flex-row gap-2 px-1 sm:px-2 lg:px-0 w-full min-h-screen">
<FrontCameraOverviewCard />
<SightingHistoryWidget title="Sightings" />
</div>
</SightingFeedProvider>
2025-08-13 14:23:48 +01:00
);
};
export default Dashboard;