docs: recover DocSidebarItem

This commit is contained in:
DIYgod
2023-08-16 11:56:24 +01:00
parent 115a33440b
commit 91e9915355
+18
View File
@@ -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} />
</>
);
}