import { useMutation, useFlash } from '@redwoodjs/web' import { navigate, routes } from '@redwoodjs/router' import CommentForm from 'src/components/CommentForm' export const QUERY = gql` query FIND_COMMENT_BY_ID($id: String!) { comment: comment(id: $id) { id text userId partId createdAt updatedAt } } ` const UPDATE_COMMENT_MUTATION = gql` mutation UpdateCommentMutation($id: String!, $input: UpdateCommentInput!) { updateComment(id: $id, input: $input) { id } } ` export const Loading = () =>