feat: use dynamic custom logo
This commit is contained in:
15
packages/web/src/components/CustomLogo/index.ee.tsx
Normal file
15
packages/web/src/components/CustomLogo/index.ee.tsx
Normal file
@@ -0,0 +1,15 @@
|
||||
import useConfig from 'hooks/useConfig';
|
||||
|
||||
const CustomLogo = () => {
|
||||
const { config, loading } = useConfig(['logo.svgData']);
|
||||
|
||||
if (loading || !config?.['logo.svgData']) return null;
|
||||
|
||||
const logoSvgData = config['logo.svgData'] as string;
|
||||
|
||||
return (
|
||||
<img src={`data:image/svg+xml;utf8,${encodeURIComponent(logoSvgData)}`} />
|
||||
);
|
||||
};
|
||||
|
||||
export default CustomLogo;
|
Reference in New Issue
Block a user