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