import { useState } from 'react'; import HttpService from '../../scripts/net/HttpService'; import styles from './SaveMap.module.css'; const SaveMap = ({submitHandler}) => { const [name, setName] = useState(''); const handleSubmit = (event) => { event.preventDefault(); submitHandler(name); }; return ( <>