import { useGlobal } from '@/lib/global' import BLOG from '@/blog.config' import LayoutBase from './LayoutBase' import Link from 'next/link' export const LayoutCategoryIndex = (props) => { const { allPosts, categories } = props const { locale } = useGlobal() const meta = { title: `${locale.COMMON.CATEGORY} | ${BLOG.TITLE}`, description: BLOG.DESCRIPTION, type: 'website' } return
{locale.COMMON.CATEGORY}:
{categories.map(category => { return
{category.name}({category.count})
})}
}