import { useQuery } from '@tanstack/react-query' import { Link } from '@tanstack/react-router' import * as api from '@/lib/api' import { SocialShareButtons } from '@/components/features/social-share' export function ArchiveComponent() { const { data, isLoading, error } = useQuery({ queryKey: ['articles'], queryFn: () => api.fetchArticles({ status: 'published' }), }) if (isLoading) { return (
Latest news and articles
{article.excerpt}
)}No articles published yet. Check back soon!