import React, { useState, useEffect } from 'react' import Link from 'next/link' import Header from '../components/header' import FeedbackArea from '../components/feedbackArea' import constants from '../constants.json' import LoadingIndicator from '../components/LoadingIndicator' import styles from './contact.module.css' export default function Contact({ globalState, setGlobalState }) { const [contacts, setContacts] = useState() useEffect(() => { if (globalState.contacts) { setContacts(globalState.contacts) } else { fetch(constants.apiUrl + 'contacts.json', { method: 'GET', credentials: 'include', headers: { Accept: 'application/json', 'Content-Type': 'application/json', }, }) .then((res) => { return res.json() }) .then((res) => { setContacts(res) setGlobalState({ contacts: res, }) }) } }, []) return (

Kapcsolat

Chat
Weboldal chat-jén keresztül beszélgetés admin-nal
Valós idejű chat, képeket és fájlokat is lehet küldeni.
Üzenet küldése
Weboldalon keresztül üzenetküldés admin-nak (feedback). Válasz chat-en érkezik majd (💬 ikon jobb felül)
{contacts ? ( <>
Alternatív módok
TODO: remove this Az alábbi módokat is nyugodtan használhatod, a nevedet, e-mail címedet, illetve semmilyen egyéb adatot nem adok ki harmadik fél számára. (egyedül én fogom látni)
{Object.keys(contacts).map((key) => { const { description, value, href } = contacts[key] return (
{description}
{href ? ( {' '} {value}{' '} ) : (
{value}
)}
) })}
) : ( )}
) }