import React from 'react' import { Link } from "react-router-dom" import { useQuery } from '@wasp/queries' import getTask from '@wasp/queries/getTask.js' const Todo = (props) => { const { data: task, isFetching, isError } = useQuery(getTask, { id: parseInt(props.match.params.id) }) if (!task) { return (