diff --git a/App.tsx b/App.tsx
index d094da5..33c55ef 100644
--- a/App.tsx
+++ b/App.tsx
@@ -76,6 +76,26 @@ const MapResizer = () => {
return null;
};
+const AdSenseComponent = () => {
+ useEffect(() => {
+ try {
+ // @ts-ignore
+ (window.adsbygoogle = window.adsbygoogle || []).push({});
+ } catch (e) {
+ console.error('AdSense error:', e);
+ }
+ }, []);
+
+ return (
+
+ );
+};
+
const ChangeView = ({ center, zoom }: { center: [number, number], zoom?: number }) => {
const map = useMap();
useEffect(() => {
@@ -380,6 +400,17 @@ const App: React.FC = () => {
}} className="p-2 bg-gray-900 text-white rounded-xl active:scale-90 shadow-lg">