refactor(web): remove typescript
This commit is contained in:
12
packages/web/src/components/Logo/index.jsx
Normal file
12
packages/web/src/components/Logo/index.jsx
Normal file
@@ -0,0 +1,12 @@
|
||||
import * as React from 'react';
|
||||
import CustomLogo from 'components/CustomLogo/index.ee';
|
||||
import DefaultLogo from 'components/DefaultLogo';
|
||||
import useConfig from 'hooks/useConfig';
|
||||
const Logo = () => {
|
||||
const { config, loading } = useConfig(['logo.svgData']);
|
||||
const logoSvgData = config?.['logo.svgData'];
|
||||
if (loading && !logoSvgData) return <React.Fragment />;
|
||||
if (logoSvgData) return <CustomLogo />;
|
||||
return <DefaultLogo />;
|
||||
};
|
||||
export default Logo;
|
Reference in New Issue
Block a user