"use client"; import { useEffect, useRef, useState } from "react"; import Link from "next/link"; import { ArrowRight, ArrowLeft, ChevronRight } from "lucide-react"; import { api } from "@/lib/api"; import { formatDate } from "@/lib/utils"; export interface BlogPost { id: string; slug: string; title: string; excerpt?: string; author?: string; authorPubkey?: string; publishedAt?: string; createdAt?: string; categories?: { category: { id: string; name: string; slug: string } }[]; featured?: boolean; } export interface BlogCategory { id: string; name: string; slug: string; } interface BlogIndexProps { initialPosts: BlogPost[]; initialTotal: number; categories: BlogCategory[]; limit: number; } function PostCardSkeleton() { return (
No posts yet
Check back soon for curated Bitcoin content.
{featured.excerpt}
)}{post.excerpt}
)}