import type { FindNachhilfeangebots, FindNachhilfeangebotsVariables, } from 'types/graphql' import { Link, routes } from '@redwoodjs/router' import type { CellSuccessProps, CellFailureProps, TypedDocumentNode, } from '@redwoodjs/web' import Nachhilfeangebots from 'src/components/Nachhilfeangebot/Nachhilfeangebots' export const QUERY: TypedDocumentNode< FindNachhilfeangebots, FindNachhilfeangebotsVariables > = gql` query FindNachhilfeangebots { nachhilfeangebots { id subject currentClass cost } } ` export const Loading = () =>
Loading...
export const Empty = () => { return (
Keine Nachhilfeangebote bis jetzt.{' '} Ein neues erstellen?
) } export const Failure = ({ error }: CellFailureProps) => (
{error?.message}
) export const Success = ({ nachhilfeangebots, }: CellSuccessProps) => { return }