import type { FindPosts, FindPostsVariables } from 'types/graphql' import { Link, routes } from '@redwoodjs/router' import type { CellSuccessProps, CellFailureProps, TypedDocumentNode, } from '@redwoodjs/web' import Posts from 'src/components/Post/Posts' export const QUERY: TypedDocumentNode = gql` query FindPosts { posts { id title body createdAt updatedAt } } ` export const Loading = () =>
Loading...
export const Empty = () => { return (
No posts yet.{' '} Create one?
) } export const Failure = ({ error }: CellFailureProps) => (
{error?.message}
) export const Success = ({ posts, }: CellSuccessProps) => { return }