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)) const sortFn = (a, b) => new Date(b.updated_at) - new Date(a.updated_at) 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} />
) } export default Export