'use client' import Link from 'next/link' import { useEffect } from 'react' import { useApi } from '@/lib/hooks/useApi' import { LoadingState } from '@/components/ui/LoadingState' import { ErrorState } from '@/components/ui/ErrorState' interface BlogPost { id: string title: string link: string published_at: string summary: string image_url?: string author?: string } interface BlogResponse { title: string description: string items: BlogPost[] } export default function TheJournalPage() { const { data, error, isLoading, execute } = useApi() useEffect(() => { execute({ url: '/blog/rss', method: 'GET', }) }, []) return (
MoreThanADiagnosis
{isLoading && } {error && window.location.reload()} />} {!isLoading && !error && (

The Journal

Reflections, stories, and updates from our community.

{data?.items.map((post) => (
{post.image_url && (
{post.title}
)}

{post.author || 'MoreThanADiagnosis'}

{post.title}

{post.published_at}
))}
)}
) }