import LayoutBase from './LayoutBase' import { useGlobal } from '@/lib/global' import React from 'react' import Catalog from './components/Catalog' import { ArticleDetail } from './components/ArticleDetail' import { ArticleLock } from './components/ArticleLock' export const LayoutSlug = props => { const { post, lock, validPassword } = props const { locale } = useGlobal() if (!post) { return } const slotRight = post?.toc && post?.toc?.length > 3 && (
) return ( {!lock ? : } ) }