import Card from './Card' import CategoryGroup from './CategoryGroup' import LatestPostsGroup from './LatestPostsGroup' import TagGroups from './TagGroups' import Catalog from './Catalog' import { InfoCard } from './InfoCard' import { AnalyticsCard } from './AnalyticsCard' import CONFIG_HEXO from '../config_hexo' export default function SideRight (props) { const { post, currentCategory, categories, latestPosts, tags, currentTag, showCategory, showTag, slot } = props return (
{ CONFIG_HEXO.WIDGET_ANALYTICS && } {showCategory && (
分类
)} {showTag && ( )} {CONFIG_HEXO.WIDGET_LATEST_POSTS && latestPosts && latestPosts.length > 0 && }
{post && post.toc && } {slot}
) }