import type {FunctionComponent} from 'react'
import {Suspense} from 'react'
import ToDoList from '@/components/tasks/toDoList'
import FullPageSpinner from '@/components/custom/fullPageSpinner'

const Completed: FunctionComponent = () => {
  return (
    <Suspense fallback={<FullPageSpinner />}>
      <ToDoList completedTasks={true} />
    </Suspense>
  )
}

export default Completed
