多语言 Fukasawa和Next主题

This commit is contained in:
tangly1024.com
2023-12-27 17:42:23 +08:00
parent a6ee3d6f4a
commit 81865bf455
9 changed files with 30 additions and 10 deletions

View File

@@ -1,3 +1,4 @@
import { useGlobal } from '@/lib/global'
/**
* 空白博客 列表
@@ -5,8 +6,9 @@
* @constructor
*/
const NavPostListEmpty = ({ currentSearch }) => {
const { locale } = useGlobal()
return <div className='flex w-full items-center justify-center min-h-screen mx-auto md:-mt-20'>
<p className='text-gray-500 dark:text-gray-300'>没有找到文章 {(currentSearch && <div>{currentSearch}</div>)}</p>
<p className='text-gray-500 dark:text-gray-300'>{locale.COMMON.NO_RESULTS_FOUND} {(currentSearch && <div>{currentSearch}</div>)}</p>
</div>
}
export default NavPostListEmpty