import { useGlobal } from '@/lib/global' import Link from 'next/link' 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})
) })}
) }