/* 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 { TextView } from 'utopia-ui' import { config } from './config' 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.

)} ) } const close = () => { const myModal = document.getElementById('my_modal_3') as HTMLDialogElement myModal.close() } export const ModalContent = ({ map }: { map: any }) => { 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 }