import styles from '../Notes.module.scss'
import React, {useState} from 'react'
import useUser from 'lib/useUser'
import useNotes from '../hooks/useNotes'
import useSort from '../hooks/useSort'
import ListItem from './ListItem'
import Actions from './Actions'
import Splash from './Splash'
const List = () => {
const [fetchedNote, setFetchedNote] = useState()
const [action, setAction] = useState('')
const {notes, error} = useNotes()
const [sortedBy, sortBy, sortFn] = useSort(2)
const {user} = useUser({
redirectToLogin: true,
redirectToVerify: true,
})
if (error) return
sortBy(1)}>Title {sortedBy(1)} | sortBy(2)}>Created {sortedBy(2)} | sortBy(3)}>Modified {sortedBy(3)} |
---|---|---|
Your notes list is empty. |