import clsx from 'clsx' import { useLocalize } from '../../../context/localize' import { Icon } from '../../_shared/Icon' import styles from './SearchModal.module.scss' export const SearchModal = () => { const { t } = useLocalize() const action = '/search' const method = 'get' let msgElement: HTMLTextAreaElement | undefined let contactElement: HTMLInputElement | undefined const submit = async () => { await fetch(action, { method, headers: { accept: 'application/json', 'content-type': 'application/json; charset=utf-8', }, body: JSON.stringify({ contact: contactElement?.value, message: msgElement?.textContent }), }) // hideModal() } return (
) }