import { useGlobal } from '@/lib/global' import LayoutBase from './LayoutBase' import Link from 'next/link' export const LayoutCategoryIndex = (props) => { const { allPosts, categories } = props const { locale } = useGlobal() return
{locale.COMMON.CATEGORY}:
{categories.map(category => { return
{category.name}({category.count})
})}
}