import BLOG from '@/blog.config' import { useGlobal } from '@/lib/global' import { faFolder, faTh } from '@fortawesome/free-solid-svg-icons' import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' import Link from 'next/link' import LayoutBase from './LayoutBase' export const LayoutCategoryIndex = (props) => { const { locale } = useGlobal() const { categories } = props const meta = { title: `${locale.COMMON.CATEGORY} | ${BLOG.TITLE}`, description: BLOG.DESCRIPTION, type: 'website' } return
{locale.COMMON.CATEGORY}:
{Object.keys(categories).map(category => { return
{category}({categories[category]})
})}
}