Status Notifications

This commit is contained in:
nocnico
2025-03-17 21:33:28 +01:00
parent 3101c61584
commit c66331d367
2 changed files with 66 additions and 0 deletions

View File

@@ -4,6 +4,7 @@ import { useEffect, useRef } from "react";
import L from "leaflet";
import "leaflet/dist/leaflet.css";
import ToastCard from "./toast/ToastCard";
import { Toast, ToastBar, Toaster, toast } from "react-hot-toast";
export default () => {
const mapRef = useRef<HTMLDivElement>(null);
@@ -27,6 +28,23 @@ export default () => {
return (
<div className="relative w-full h-full">
<div>
<Toaster
containerStyle={{
top: 150,
left: 20,
right: 20,
}}
toastOptions={{
style: {
background: "var(--color-base-100)",
color: "var(--color-base-content)",
},
}}
position="top-left"
reverseOrder={false}
/>
</div>
<div
ref={mapRef}
className="w-full h-full rounded-lg shadow-lg"