import { useGlobal } from '@/lib/global' import SmartLink from '@/components/SmartLink' /** * 上一篇、下一篇文章 * @param {prev,next} param0 * @returns */ export default function ArticleAround({ prev, next }) { const { locale } = useGlobal() if (!prev || !next) { return <> } return (
{locale.COMMON.PREV_POST}
{prev.title}
{locale.COMMON.NEXT_POST}
{next.title}
) }