docs: recover DocSidebarItem
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
import React from 'react';
|
||||
import DocSidebarItem from '@theme-original/DocSidebarItem';
|
||||
import CarbonAds from '@site/src/components/CarbonAds';
|
||||
|
||||
export default function DocSidebarItemWrapper(props) {
|
||||
if (props.item.value === 'CarbonAds') {
|
||||
return (
|
||||
<>
|
||||
<CarbonAds />
|
||||
</>
|
||||
);
|
||||
}
|
||||
return (
|
||||
<>
|
||||
<DocSidebarItem {...props} />
|
||||
</>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user