import { useGlobal } from '@/lib/global' /** * 文章列表上方嵌入 * @param {*} props * @returns */ export default function BlogPostBar(props) { const { tag, category } = props const { locale } = useGlobal() if (tag) { return (
{locale.COMMON.TAGS}:{tag}
) } else if (category) { return (
{locale.COMMON.CATEGORY}:{category}
) } else { return <> } }