import styles from '../Notes.module.scss' import React, {useState} from 'react' import useNotes from '../hooks/useNotes' import {handleSelect, handleSelectAll, handleExport} from '../helpers/export' const Export = ({setAction}) => { const {notes} = useNotes() const [ids, setIds] = useState(notes.map(n => n.noteId)) if (!notes) return null return (
{setAction('')}}>Back

Click to export your notes:

handleExport(e, ids, notes)} />

Notes to export:

handleSelectAll(e, notes, setIds)} checked={notes.length === ids.length} />
{notes.map(note => (
handleSelect(note.noteId, ids, setIds)} />
))}
) } export default Export