import { type Component, For, Show } from "solid-js"; import BlogCard from "@/components/BlogCard"; import type { BlogPost } from "@/api/blog"; interface BlogListProps { blogs: BlogPost[]; loading: boolean; openBlog: (blog: BlogPost) => void; onLike: (blogId: number) => void; onEdit: (blog: BlogPost) => void; onDelete: (blogId: number) => void; } const BlogList: Component = (props) => ( <>

Loading blogs...

No blogs yet. Be the first to post!

{(blog) => ( )}
); export default BlogList;