/* eslint-disable @typescript-eslint/no-explicit-any */ /* eslint-disable @typescript-eslint/restrict-plus-operands */ /* eslint-disable @typescript-eslint/no-unsafe-assignment */ /* eslint-disable @typescript-eslint/no-unsafe-member-access */ import { useEffect, useState } from 'react' import { useNavigate } from 'react-router-dom' import { TextView } from 'utopia-ui' interface ChapterProps { clickAction1: () => void map?: any } export function Welcome1({ clickAction1, map }: ChapterProps) { return ( <> {map.custom_text ? ( <> ) : (

Welcome to {map?.name || 'Utopia Map'}

It is a tool for collaborative mapping to connect local initiatives, people and events.

Join us and grow the network by adding projects and events to the map.

Create your personal profile and place it on the map.

)} ) } export const ModalContent = ({ map }: { map: any }) => { const navigate = useNavigate() const close = () => { navigate('/') } useEffect(() => { const myModal = document.getElementById('my_modal_3') as HTMLDialogElement if (map.info_open) { myModal.showModal() } }, [map.info_open]) const [chapter, setChapter] = useState(1) // const setQuestsOpen = useSetQuestOpen() const ActiveChapter = () => { switch (chapter) { case 1: return ( { close() setTimeout(() => { // setQuestsOpen(true); setChapter(1) }, 1000) }} /> ) default: return <> } } return }