mirror of
https://github.com/Snigdha-OS/documentation.git
synced 2025-09-14 20:24:56 +02:00
24 lines
813 B
JavaScript
24 lines
813 B
JavaScript
/**
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
import React from 'react';
|
|
import clsx from 'clsx';
|
|
import {blogPostContainerID} from '@docusaurus/utils-common';
|
|
import {useBlogPost} from '@docusaurus/theme-common/internal';
|
|
import MDXContent from '@theme/MDXContent';
|
|
export default function BlogPostItemContent({children, className}) {
|
|
const {isBlogPostPage} = useBlogPost();
|
|
return (
|
|
<div
|
|
// This ID is used for the feed generation to locate the main content
|
|
id={isBlogPostPage ? blogPostContainerID : undefined}
|
|
className={clsx('markdown', className)}
|
|
itemProp="articleBody">
|
|
<MDXContent>{children}</MDXContent>
|
|
</div>
|
|
);
|
|
}
|