docs: added "Customers Overview" documentation (#2083)

This commit is contained in:
Shahed Nasser
2022-08-23 17:22:57 +03:00
committed by GitHub
parent b87b83c7d3
commit 136a98ea07
5 changed files with 79 additions and 6 deletions
+5 -4
View File
@@ -1,11 +1,12 @@
import React from 'react';
import {useColorMode} from '@docusaurus/theme-common';
import ThemedImage from '@theme/ThemedImage';
export default function UiIcon ({ lightIcon, darkIcon = '', alt = '' }) {
const {colorMode} = useColorMode();
const icon = colorMode === 'dark' && darkIcon ? darkIcon : lightIcon;
return (
<img src={icon} className="ui-icon" alt={alt} />
<ThemedImage alt={alt} sources={{
light: lightIcon,
dark: darkIcon || lightIcon
}} className="ui-icon" />
)
}