import React, { useState } from 'react' import Modal from './modal' import styles from './composer.module.css' function FileUploader({ onChange }) { return (
Fájl csatolása
) } export default function Composer({ onSubmit }) { const [editorShowing, setEditorShowing] = useState(false) const [val, setVal] = useState('') const [type, setType] = useState('public') const [title, setTitle] = useState('') const [file, setFile] = useState() return ( <>
{ setEditorShowing(true) }} className={styles.new} > Bejegyzés írása...
{editorShowing && ( { setEditorShowing(false) }} >
{type !== 'private' && ( { setTitle(e.target.value) }} /> )}