src/components/blog/index.tsximport { BlogClient } from './blog-client'import { filterPosts } from '@/utils/filter-posts'export async function Blog({perPage = 15,categoriesInclude,categoriesExclude,}: {perPage?: numbercategoriesInclude?: string[]categoriesExclude?: string[]}) {// Note: categoriesInclude is matched by name in legacy callers// We forward exclude as names (case-insensitive); include is unused herevoid categoriesIncludeconst result = filterPosts({perPage,page: 1,...(categoriesExclude?.length ? { categoriesExclude } : {}),
Showing the first 20 lines.
Get full code