import { hideModal } from '../../stores/ui' import { t } from '../../utils/intl' export const Feedback = () => { const action = '/user/feedback' const method = 'post' 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?.innerText }) }) hideModal() } return (
) }